[jawsscripts] Re: Speaking a text with a specified voice?

  • From: Artur Räpp <rtr@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Mon, 11 Feb 2013 09:05:11 +0200

Hi,

May be you can use smm* functions.
Unfortunately I can't say how exactly. I can change only the language of 
current syntheziser.

-- example script --
Script test1 ()

var
string temporary
let temporary = smmMarkupString ("TERE", smmGetSpeechMarkupTextOptions 
(0x60), 2, 1, 1, "Arial", 19, 0, 255, "en", "68" )
saystring (temporary) ; for testing

say (temporary, 1, true)

EndScript

---

Artur

10.02.2013 18:22, Octavian Rasnita kirjutas:
> 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

Other related posts: