MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 586

Director scripting reference
Table of Contents

Advertisement

voiceSetVolume()
Usage
voiceSetVolume(integer)
Description
Command; sets the volume of the text-to-speech synthesis.
Parameters
Required. An integer that specifies the volume of text-to-speech synthesis. The range of
integer
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(),
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
Required. The string to be spoken by the text-to-speech engine.
string
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(),
586
Chapter 12: Methods
voiceWordPos()
voiceWordPos()

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

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

This manual is also suitable for:

Director mx 2004

Table of Contents