User Guide

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()