From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dukecmmtar04.coxmail.com (dukecmmtar04.coxmail.com [68.99.120.47]) by speech.braille.uwo.ca (Postfix) with ESMTP id B253810A38 for ; Mon, 7 Sep 2009 22:34:01 -0400 (EDT) Received: from [192.168.0.31] (really [70.166.17.50]) by dukecmmtar04.coxmail.com (InterMail vM.7.05.02.00 201-2174-114-20060621) with ESMTP id <20090908022702.BVMR28559.dukecmmtar04.coxmail.com@[192.168.0.31]> for ; Mon, 7 Sep 2009 22:27:02 -0400 Message-ID: <4AA5C28E.6090506@baechler.net> Date: Mon, 07 Sep 2009 19:33:50 -0700 From: Tony Baechler User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.1) Gecko/20090715 Thunderbird/3.0b3 MIME-Version: 1.0 To: "Speakup is a screen review system for Linux." Subject: Re: how to tell which synthesizer is active References: <14688.1252299370@ccs.covici.com> In-Reply-To: <14688.1252299370@ccs.covici.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 02:34:02 -0000 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. >