[jawsscripts] Re: Simple question regarding sayString, in the voice you want?

Simply use the "sayUsingVoice" command. The fsdn.chm description follows:
Function: SayUsingVoice
Description
Speak a string of text using a specific synthisizer voice.

Returns
Type: Void


Parameters
Param 1:
Type: String
Description: Type in the constant representing the voice to be used.
These constants are defined in the file hjconst.jsh and are listed
below: VCTX_GLOBAL, VCTX_MESSAGE, VCTX_KEYBOARD, VCTX_SCREEN,
VCTX_PCCURSOR, VCTX_JAWSCURSOR
Include: Required


Param 2:
Type: String
Description: Type the text that is to be spoken, or specify a variable
name or script function that can provide the required text string.
Text strings that are typed must be enclosed within quotation marks.
Include: Required


Param 3:
Type: Int
Description: Type in one of the following constants that represent the
output mode to be used: OT_STRING, OT_LINE, OT_WORD, OT_CHAR,
OT_FIELD, OT_CHUNK, OT_SAYALL, OT_SPELL, OT_PHONEMIC, OT_APP_NAME,
OT_DIALOG_NAME, OT_CONTROL_NAME, OT_MDI_NAME, OT_WINDOW_NAME,
OT_GRAPHIC, OT_HELP, OT_STATUS, OT_SELECTED, OT_TEXT, OT_POSITION,
OT_STATIC, OT_FONT, OT_KEYBOARD, OT_CURSOR, OT_DEBUG.
Include: Required


Param 4:
Type: Int
Description: Not available yet
Include: Optional


Version
This function is available in the following releases:

PAC Mate 1.10 and later
JAWS 4.51 and later
Magic 10.5 and later


On 1/30/09, Geoff Chapman <gch@xxxxxxxxxxxxxxxx> wrote:
> Guys. I have googled for this answer, as it's such a simple thing I thought
> the net could tell me, but I wasn't very successful.  I'm using SayString ()
> functions all over my scripts, which I heard is not the bestest Say type
> function to use. initially I thought it was because of translation issues,
> where other languages might be involved, hense the advantage of having the
> Say messages, in the jsm file etc.
> But, since I wasn't ever gunna release these to anyone else, other than the
> company for which I'm  building them,
> I didn't think following and learning the whole SayMessage protocols, much
> worth my energies.
> But, now I have gotten into a situation, where I really would like to be
> able to say things, in the voice I want. I thought I could use SayMessage to
> do that, but, well although I've had a bit of a browse through chm, and the
> description in the assign functions box in script manager, I'm still not
> clear as to how to do it. would any kind soul care to either enlighten me,
> or point me in the direction I need to find out the syntax for learning to
> use this thing?if this is the only way to do it?
> In frames manager, I am able to assign whatever voice I want to given
> SayStrings in there, and I desire the same flexibility outside of frames
> mode.
>
> man frames manager is very, very cool I reckon. a most underated utility!
> it's got some severely good smarts in there for not very adept scripter
> guys.
>
>
> thanks awfully.
>
> Geoff C.
>
>
>
> __________
> 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
>
>


-- 
Change the world--1 deed at a time
Jackie McBride
Check out my homepage at:
www.abletec.serverheaven.net
& please join my fight against breast cancer
<http://teamacs.acsevents.org/site/TR?px=1790196&pg=personal&fr_id=3489>
__________ 
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: