586
Chapter 12: Methods
voiceSetVolume()
Usage
voiceSetVolume(
integer
)
Description
Command; sets the volume of the text-to-speech synthesis.
Parameters
integer
Required. An integer that specifies the volume of text-to-speech synthesis. The range of
valid values depends on the operating system platform. If successful, the command returns the
new value that was set. If an invalid value is specified, the volume is set to the nearest valid value.
Example
This statement sets the volume of text-to-speech synthesis to 55:
voiceSetVolume(55)
See also
voiceSpeak()
,
voicePause()
,
voiceResume()
,
voiceStop()
,
voiceGetRate()
,
voiceSetRate()
,
voiceGetPitch()
,
voiceSetPitch()
,
voiceGetVolume()
,
voiceState()
,
voiceWordPos()
voiceSpeak()
Usage
-- Lingo syntax
voiceSpeak("
string
")
// JavaScript syntax
voiceSpeak("
string
"); // documentation n/a
Description
Command; causes the specified string to be spoken by the text-to-speech engine. When this
command is used, any speech currently in progress is interrupted by the new string.
Parameters
string
Required. The string to be spoken by the text-to-speech engine.
Example
This statement causes the text-to-speech engine to speak the string “Welcome to Shockwave”:
voiceSpeak("Welcome to Shockwave")
See also
voiceSpeak()
,
voicePause()
,
voiceResume()
,
voiceStop()
,
voiceGetRate()
,
voiceSetRate()
,
voiceGetPitch()
,
voiceSetPitch()
,
voiceGetVolume()
,
voiceSetVolume()
,
voiceState()
,
voiceWordPos()
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...