[jawsscripts] Re: IsSpeaking: was Re: ScheduleFunction

  • From: Chad Foster <chad.foster@xxxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Tue, 3 Mar 2009 20:10:54 -0500

I once used ScheduleFunction to determine when to play files in
succession. This code included determining the size of the WAV file,
using that to predict the time it would take to play, and scheduling
the function to play the next file just after the current file had
stopped playing.

I wonder if you could use some similar techniques to determine the
length of the text string, determine the speech rate and then use that
to determine just when to schedule your functions to say the
appropriate text strings without stepping on one another.

On 3/3/09, Sean Randall <seanr@xxxxxxxxxxxxxxx> wrote:
> Martin,
>
> I myself recently struggled with this one.
>
> A script set Ive been working on plays multiple sound files for various
> events and I wanted to synthesize a description, then the sound, etc.  I
> planned to use isSpeaking - thinking that it would naturally be available,
> but it wasn't.  I suppose given JAWS' multiple synthesizer interfaces, some
> hardware, some not, it's difficult to determine if something has finished
> talking without some upheaval. Oh and don't try and use speechInUse as a
> substitute, I did that in a loop and the results weren't pretty...
>
> Sean.
>
> -----Original Message-----
> From: jawsscripts-bounce@xxxxxxxxxxxxx
> [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Martin Slack
> Sent: Tuesday, March 03, 2009 7:55 AM
> To: jawsscripts@xxxxxxxxxxxxx
> Subject: [jawsscripts] Re: ScheduleFunction
>
> You've put your finger on the problem Geoff.  Has anybody investigated the
> function isSpeaking?  It only appears to be available for the PACMate.  The
> FSDN says:
>
> Function: IsSpeaking
> Description
> Checks to see if any text is currently being spoken.
>
> Returns
> Type: Int
> Description: TRUE if synthesizer is speaking, FALSE otherwise.
>
>
> Parameters
> No Parameters
>
> Version
> This function is available in the following releases:
>
>   1.. PAC Mate 1.10 and later
>
>
> Martin
>
>
>
>
> __________
> Visit and contribute to The JAWS Script Repository http://jawsscripts.com
>
> View the list's information and change your settings at
> http://www.freelists.org/list/jawsscripts
>
>


-- 
Chad Foster
Access Technology Solutions
Leveling The Playing Field Through Technology
http://www.GO-ATS.net
__________ 
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts: