EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 585

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING
1130 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
voiceSetRate() 585
voiceSetPitch()
Usage
voiceSetPitch(integer)
Description
Command; sets the pitch for the current voice of the text-to-speech engine to the specified value.
The return value is the new pitch value that has been set.
Parameters
integer
Required. An integer that specifies the pitch for the text-to-speech voice. The valid range
of values depends on the operating system platform and text-to-speech software.
Example
This statement sets the pitch for the current voice to 75:
voiceSetPitch(75)
See also
voiceSpeak(), voicePause(), voiceResume(), voiceStop(), voiceGetRate(),
voiceSetRate(), voiceGetPitch(), voiceGetVolume(), voiceSetVolume(),
voiceState(), voiceWordPos()
voiceSetRate()
Usage
voiceSetRate(integer)
Description
Command; sets the playback rate of the text-to-speech engine to the specified integer value. The
command returns the new value that has been set.
Parameters
integer
Required. An integer that specifies the playback rate that the text-to-speech engine uses.
The valid range of values depends on the operating system platform. In general, values between
-10 and 10 are appropriate for most text-to-speech software. If an out-of-range value is specified,
the rate will be set to the nearest valid value.
Example
This statement sets the playback rate of the text-to-speech engine to 7:
voiceSetRate(7)
See also
voiceSpeak(), voicePause(), voiceResume(), voiceStop(), voiceGetRate(),
voiceGetPitch(), voiceSetPitch(), voiceGetVolume(), voiceSetVolume(),
voiceState(), voiceWordPos()