See also
voiceSpeak(), voicePause(), voiceResume(), voiceStop(), voiceSetRate(),
voiceGetPitch(), voiceSetPitch(), voiceGetVolume(), voiceSetVolume(),
voiceState(),
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(),
voiceInitialize()
Usage
voiceInitialize()
Description
Command; loads the computer's text-to-speech engine. If the
returns 0, text-to-speech software is not present or failed to load.
The command returns 1 if successful, 0 otherwise.
Parameters
None.
582
Chapter 12: Methods
voiceWordPos()
voiceWordPos()
voiceInitialize()
command
Need help?
Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?
Questions and answers