[jawsscripts] Re: methods of Setting a pause or delay in script for your synth to finish first. was Re: Re: Speaking a text with a specified voice?

  • From: "Octavian Rasnita" <orasnita@xxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Tue, 12 Feb 2013 09:50:46 +0200

Hi John,

Yes, please give an example. But BTW, is it possible to stop Jaws speaking 
while it speaks?
Because it would not be OK if the user would need to wait until it finishes a 
longer text.

Thanks.

--Octavian

----- Original Message ----- 
From: "John Martyn" <johnrobertmartyn@xxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Tuesday, February 12, 2013 7:14 AM
Subject: [jawsscripts] Re: methods of Setting a pause or delay in script for 
your synth to finish first. was Re: Re: Speaking a text with a specified voice?


> In blind tunes I can do a rough calculation on when I turn up the volume 
> after jaws stops speaking but If you want an example let me know. It isn't 
> exact science, but it works.
> John
> 
> -----Original Message-----
> From: jawsscripts-bounce@xxxxxxxxxxxxx 
> [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Soronel Haetir
> Sent: Monday, February 11, 2013 9:43 AM
> To: jawsscripts@xxxxxxxxxxxxx
> Subject: [jawsscripts] Re: methods of Setting a pause or delay in script for 
> your synth to finish first. was Re: Re: Speaking a text with a specified 
> voice?
> 
> Certainly SAPI can inform a program about when speech is done, I would expect 
> any other synthesis interface to be able to do the same.  But I don't know 
> whether that is actually exposed to us or not.
> 
> On 2/11/13, Geoff Chapman <gch@xxxxxxxxxxxxxxxx> wrote:
>> Exactly! I totally agree!surely guys, does anyone know of a fix for this?
>> Surely the Synthesizer must have a way of telling jaws when it has 
>> finished
>>
>> dealing with it's text, else how would anything know when to 
>> interrupt,and when to let the text finish speaking?  Surely, surely, 
>> there'd have to be some event/way of jaws knowing about this?
>>
>>
>> ----- Original Message -----
>> From: "Octavian Rasnita" <orasnita@xxxxxxxxx>
>> To: <jawsscripts@xxxxxxxxxxxxx>
>> Sent: Monday, February 11, 2013 6:48 PM
>> Subject: [jawsscripts] Re: methods of Setting a pause or delay in 
>> script for
>>
>> your synth to finish first. was Re: Re: Speaking a text with a 
>> specified voice?
>>
>>
>>> Yes, all you said is true.
>>>
>>> And yep, I checked SayUsingVoice() function too, but I found in 
>>> HJConst.jsh only unhelpful VCTX_* constants.
>>>
>>> It would have been nice if there would be a parameter that would 
>>> allow specifying the voice profile.
>>>
>>> But I don't know if it is possible. If Jaws doesn't have a way of 
>>> detecting when it finished speaking, if there is no such event 
>>> available,
>>>
>>> then it can't delay the synthesizers change until that moment.
>>>
>>> What it seems strange is that it doesn't have an event detection 
>>> mechanism
>>>
>>> to find when it finished speaking, because I guess that Jaws should 
>>> know when it finished speaking.
>>>
>>> Hmm, or better said, I don't know. If Jaws doesn't make something 
>>> else than just preparing the text and sending it to the active 
>>> synthesizer, if
>>>
>>> the synthesizer doesn't have a mechanism of detecting when it 
>>> finished speaking and a standard way of reporting this back to the 
>>> screen reader, then what I want is not possible.
>>> But I guess that the screen reader and the synthesizer communicate 
>>> well enough, if the screen reader can control the synthesizer while 
>>> it is speaking and it can stop it for example, so it means that it 
>>> doesn't just
>>>
>>> give the text and forget about it.
>>>
>>> --Octavian
>>>
>>> ----- Original Message -----
>>> From: "Geoff Chapman" <gch@xxxxxxxxxxxxxxxx>
>>> To: <jawsscripts@xxxxxxxxxxxxx>
>>> Sent: Monday, February 11, 2013 9:16 AM
>>> Subject: [jawsscripts] methods of Setting a pause or delay in script 
>>> for your synth to finish first. was Re: Re: Speaking a text with a 
>>> specified voice?
>>>
>>>
>>>> Hi.
>>>>
>>>> So, really,  just to perhaps help target this query more succinctly, 
>>>> what I'm hearing your wanting is, not so much a way to switch synths 
>>>> now, Sounds like SetSynth is doing that for you perhaps, but a 
>>>> reliable way in your script of knowing when the text has finishd 
>>>> speaking in a particular synth, before handing back to the function 
>>>> to progress to the next step of switching the synth back again, 
>>>> without prematurely cutting off the previous speech from the 
>>>> temporary synth you've previously switched to.
>>>> . Is that correct?
>>>>
>>>> So some function which would let the script know either that the 
>>>> synth is still speaking, or that it has completed what it has been 
>>>> sent.
>>>> Surely there'd have to be some internal builtin that would connote this?
>>>> would there not?
>>>>
>>>> A functionality which seems to just happen naturally without any 
>>>> dramas, when using internal foiceSwitching functions inside 
>>>> Eloquence, like,
>>>>
>>>> SayUsingVoice (VCTX_[MyVoiceName], [TextToSay or Function containing 
>>>> string here], Ot_String)
>>>>
>>>> Which I presume you know about. right?
>>>>
>>>> The square brackets above, are obviously just being used to connote 
>>>> that this isn't the exact text of what should go in those 1st two 
>>>> parameter slots, but to explain the type of data which should go there.
>>>>
>>>> Any hardwired string would obviously need to be in quotes as 
>>>> parameter 2.
>>>>
>>>>
>>>> ----- Original Message -----
>>>> From: "Octavian Rasnita" <orasnita@xxxxxxxxx>
>>>> To: <jawsscripts@xxxxxxxxxxxxx>
>>>> Sent: Monday, February 11, 2013 2:22 AM
>>>> Subject: [jawsscripts] Re: Speaking a text with a specified voice?
>>>>
>>>>
>>>>> Thanks, but as I said, I tried in 2 ways:
>>>>>
>>>>> 1. SetActiveVoiceProfileByName ("Carmen2")
>>>>>
>>>>> 2. I also tried using SetSynth ("eloq") but it didn't help either.
>>>>>
>>>>> The problem is that when a new voice is activated, it shuts Jaws 
>>>>> down so the text spoken with the previous voice is not spoken at 
>>>>> all.
>>>>>
>>>>> --Octavian
>>>>>
>>>>> ----- Original Message -----
>>>>> From: "Dang Manh Cuong" <dangmanhcuong@xxxxxxxxx>
>>>>> To: <jawsscripts@xxxxxxxxxxxxx>
>>>>> Sent: Sunday, February 10, 2013 3:37 PM
>>>>> Subject: [jawsscripts] Re: Speaking a text with a specified voice?
>>>>>
>>>>>
>>>>>> Hi
>>>>>> Use SetSynth to swich to the synthesizer of choice, and use 
>>>>>> SetVoicePerson to set name.
>>>>>> HTH
>>>>>> Cuong
>>>>>> ----- Original Message -----
>>>>>> From: "Octavian Rasnita" <orasnita@xxxxxxxxx>
>>>>>> To: <jawsscripts@xxxxxxxxxxxxx>
>>>>>> Sent: Sunday, February 10, 2013 3:07 PM
>>>>>> Subject: [jawsscripts] Re: Speaking a text with a specified voice?
>>>>>>
>>>>>>
>>>>>>> Thanks Stefan and Doug. Unfortunately it seems that there is no 
>>>>>>> way to instruct JAWS to speach a piece of text with a specified 
>>>>>>> synthesizer, although I was sure that this should be a simple 
>>>>>>> thing.
>>>>>>>
>>>>>>> --Octavian
>>>>>>>
>>>>>>> ----- Original Message -----
>>>>>>> From: "Doug Lee" <doug.lee@xxxxxxxxxxxxxxxx>
>>>>>>> To: <jawsscripts@xxxxxxxxxxxxx>
>>>>>>> Sent: Sunday, February 10, 2013 12:45 AM
>>>>>>> Subject: [jawsscripts] Re: Speaking a text with a specified voice?
>>>>>>>
>>>>>>>
>>>>>>>> SpeechInUse() actually tells you only whether or not speech, as 
>>>>>>>> opposed to Braille output, is being used by the JAWS user. It 
>>>>>>>> does not tell you when something is actually being said.
>>>>>>>>
>>>>>>>> On Sat, Feb 09, 2013 at 08:05:57PM +0200, Stefan Moisei wrote:
>>>>>>>> Hi,
>>>>>>>> The function SpeechInUse() should tell you if jaws is speaking 
>>>>>>>> or not.
>>>>>>>>
>>>>>>>> -----Original Message-----
>>>>>>>> From: Octavian Rasnita
>>>>>>>> Sent: Saturday, February 09, 2013 5:29 PM
>>>>>>>> To: jawsscripts@xxxxxxxxxxxxx
>>>>>>>> Subject: [jawsscripts] Speaking a text with a specified voice?
>>>>>>>>
>>>>>>>> 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
>>>>>>>>
>>>>>>>> __________???
>>>>>>>>
>>>>>>>> View the list's information and change your settings at 
>>>>>>>> //www.freelists.org/list/jawsscripts
>>>>>>>>
>>>>>>>> --
>>>>>>>> Doug Lee, Senior Accessibility Programmer SSB BART Group - 
>>>>>>>> Accessibility-on-Demand mailto:doug.lee@xxxxxxxxxxxxxxxx  
>>>>>>>> http://www.ssbbartgroup.com "While they were saying among 
>>>>>>>> themselves it cannot be done, it was done." --Helen Keller 
>>>>>>>> __________ 
>>>>>>>>
>>>>>>>> View the list's information and change your settings at 
>>>>>>>> //www.freelists.org/list/jawsscripts
>>>>>>>>
>>>>>>>
>>>>>>> __________ 
>>>>>>>
>>>>>>> View the list's information and change your settings at 
>>>>>>> //www.freelists.org/list/jawsscripts
>>>>>>>
>>>>>> ________________ Dang Manh Cuong HCMC University of Pedagogy: The 
>>>>>> Educational Psychology Mobile: +84 902-572-300 E-mail:
>>>>>> dangmanhcuong@xxxxxxxxx Yahoo! ID: manhcuong0312 Skype name:
>>>>>> dangmanhcuong
>>>>>> facebook:
>>>>>>
>>>>>> __________ 
>>>>>>
>>>>>> View the list's information and change your settings at 
>>>>>> //www.freelists.org/list/jawsscripts
>>>>>>
>>>>>
>>>>> __________ 
>>>>>
>>>>> View the list's information and change your settings at 
>>>>> //www.freelists.org/list/jawsscripts
>>>>>
>>>>>
>>>>
>>>> __________ 
>>>>
>>>> View the list's information and change your settings at 
>>>> //www.freelists.org/list/jawsscripts
>>>>
>>> __________ 
>>>
>>> View the list's information and change your settings at 
>>> //www.freelists.org/list/jawsscripts
>>>
>>>
>>
>> __________ 
>>
>> View the list's information and change your settings at 
>> //www.freelists.org/list/jawsscripts
>>
>>
> 
> 
> --
> Soronel Haetir
> soronel.haetir@xxxxxxxxx
> __________ 
> 
> View the list's information and change your settings at 
> //www.freelists.org/list/jawsscripts
> 
> __________�
> 
> View the list's information and change your settings at 
> //www.freelists.org/list/jawsscripts
>
__________�

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

Other related posts: