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.
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...