[jawsscripts] Speaking a text with a specified voice?

  • From: "Octavian Rasnita" <orasnita@xxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Sat, 9 Feb 2013 17:29:18 +0200

Hi,

Is it possible to create a JAWS script that speaks a text with a specified
installed voice, then after it finishes, switch back to the default voice?

I tried:

SetActiveVoiceProfileByName ("Carmen2")
SayString(sTrText)
SetActiveVoiceProfileByName ("Eloquence")

But nothing is spoken. When the function SetActiveVoiceProfileByName() is
called the second time, it stops immediately the speech.

I have found this by doing:

SetActiveVoiceProfileByName ("Carmen2")
SayString(sTrText)
Delay (50, TRUE )
SetActiveVoiceProfileByName ("Eloquence")

This time the text was spoken as wanted, but I wasn't able to use the
computer for a few seconds after that, because of the Delay() function.

I guess that it is not possible to calculate how much time it would take to
speak a certain text with a specified voice, but isn't possible to detect
somehow when JAWS finished speaking, in order to be able to switch the voice
in that moment?

I also tried using SetSynth ("eloq") but it didn't help either.

Thanks.



--Octavian

__________�

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

Other related posts: