EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 582

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...
582 Chapter 12: Methods
See also
voiceSpeak(), voicePause(), voiceResume(), voiceStop(), voiceSetRate(),
voiceGetPitch(), voiceSetPitch(), voiceGetVolume(), voiceSetVolume(),
voiceState(), voiceWordPos()
voiceGetVolume()
Usage
voiceGetVolume()
Description
Function: returns the current volume of the text-to-speech synthesis. The value returned is an
integer. The valid range of values depends on the operating system platform.
Parameters
None.
Example
These statements check whether the text-to-speech volume is at least 55 and set it to 55 if
is lower:
-- Lingo syntax
if voiceGetVolume() < 55 then
voiceSetVolume(55)
end if
// JavaScript syntax
if (voiceGetVolume() < 55) {
voiceSetVolume(55);
}
See also
voiceSpeak(), voicePause(), voiceResume(), voiceStop(), voiceGetRate(),
voiceSetRate(), voiceGetPitch(), voiceSetPitch(), voiceSetVolume(),
voiceState(), voiceWordPos()
voiceInitialize()
Usage
voiceInitialize()
Description
Command; loads the computer’s text-to-speech engine. If the voiceInitialize() command
returns 0, text-to-speech software is not present or failed to load.
The command returns 1 if successful, 0 otherwise.
Parameters
None.