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.
Summary of Contents for DIRECTOR MX 2004
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...