From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from wlym.com (wlym.com [66.135.63.43]) by speech.braille.uwo.ca (Postfix) with ESMTP id 9C25510A75 for ; Tue, 8 Sep 2009 00:36:26 -0400 (EDT) Received: from ccs.covici.com (pool-70-109-54-11.clppva.fios.verizon.net [70.109.54.11]) (authenticated bits=128) by wlym.com (8.14.3/8.14.3/Debian-5) with ESMTP id n884aOWD005051 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 7 Sep 2009 23:36:25 -0500 Received: from ccs.covici.com (localhost [127.0.0.1]) by ccs.covici.com (8.14.3/8.14.2) with ESMTP id n884aKRV014246 for ; Tue, 8 Sep 2009 00:36:23 -0400 To: "Speakup is a screen review system for Linux." Subject: Re: how to tell which synthesizer is active In-reply-to: <4AA5C28E.6090506@baechler.net> References: <14688.1252299370@ccs.covici.com> <4AA5C28E.6090506@baechler.net> Comments: In-reply-to Tony Baechler message dated "Mon, 07 Sep 2009 19:33:50 -0700." X-Mailer: MH-E 8.2; nmh 1.3; GNU Emacs 23.1.1 Date: Tue, 08 Sep 2009 00:36:20 -0400 Message-ID: <14244.1252384580@ccs.covici.com> From: covici@ccs.covici.com X-BeenThere: speakup@braille.uwo.ca X-Mailman-Version: 2.1.12 Precedence: list Reply-To: "Speakup is a screen review system for Linux." List-Id: "Speakup is a screen review system for Linux." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Sep 2009 04:36:27 -0000 I want to do this only at boot time, but this sounds like it could have a lot of false hits. I still think the synth could be set to none when this happens -- any reason why not? Tony Baechler wrote: > Hi, > > You could grep the output of dmesg. Speakup always writes messages > when a synth has timed out. Perhaps something like this would work: > > dmesg | tail | grep -i deactivated > > You could run a cron job every 30 minutes or so which could check and > switch to software speech. By using tail, it only shows the most > recent messages so you shouldn't get old results once you've switched. > You could also have your script check if software speech is already > being used and just abort if it is. > > On 9/6/2009 9:56 PM, covici@ccs.covici.com wrote: > > Hi. In the old days, even if I had a synthesizer built in the kernel, I > > could check and if speakup had deactivated because the synth was not > > connected, the name would be changed to none. I would like to be able > > to do this now because I want to automatically switch to a software > > synth if my hardware one is not connected. However, the name of the > > synth remains tthe same making it more difficult to do this. > > > > _______________________________________________ > Speakup mailing list > Speakup@braille.uwo.ca > http://speech.braille.uwo.ca/mailman/listinfo/speakup -- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici covici@ccs.covici.com