EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 587

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...
voiceStop() 587
voiceState()
Usage
-- Lingo syntax
voiceState()
// JavaScript syntax
voiceState(); // documentation n/a
Description
Function; returns the current status of the voice as a symbol. The possible return values are
#playing, #paused, and #stopped.
Parameters
None.
Example
These statements check whether the text-to-speech engine is actively speaking and set the voice
to 1 if it is not:
--Lingo syntax
if voiceState() <> #playing then
voiceSet(1)
end if
// JavaScript syntax
if (voiceState() != symbol("playing")) {
voiceSet(1);
}
See also
voiceSpeak(), voicePause(), voiceResume(), voiceStop(), voiceGetRate(),
voiceSetRate(), voiceGetPitch(), voiceSetPitch(), voiceGetVolume(),
voiceSetVolume(), voiceWordPos(), voiceSpeak()
voiceStop()
Usage
-- Lingo syntax
voiceStop()
// JavaScript syntax
voiceStop(); // documentation n/a
Description
Command; stops the speech output to the text-to-speech engine and empties the text-to-speech
buffer. The command returns a value of 1 if it is successful, or 0 if it is not.
Parameters
None.