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
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(),
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.
, and
.
#stopped
voiceSpeak()
voiceStop()
587
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