MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 581

Director scripting reference
Table of Contents

Advertisement

voiceGetPitch()
Usage
voiceGetPitch()
Description
Function; returns the current pitch for the current voice as an integer. The valid range of values
depends on the operating system platform and text-to-speech software.
Parameters
None.
Example
These statements check whether the pitch of the current voice is above 10 and set it to 10 if it is:
-- Lingo syntax
if voiceGetPitch() > 10 then
voiceSetPitch(10)
end if
// JavaScript syntax
if (voiceGetPitch() > 10) {
voiceSetPitch(10);
}
See also
voiceSpeak(), voicePause(), voiceResume(), voiceStop(), voiceGetRate(),
voiceSetRate(), voiceSetPitch(), voiceGetVolume(), voiceSetVolume(),
voiceState(),
voiceGetRate()
Usage
voiceGetRate()
Description
Function; returns the current playback rate of the text-to-speech engine. The return value is an
integer. The valid range of values depends on the text-to-speech software and operating system
platform. In general, values between -10 and 10 can be expected.
Parameters
None.
Example
These statements check whether the rate of speech synthesis is below 50 and set it to 50 if it is:
-- Lingo syntax
if voiceGetRate() < 50 then
voiceSetRate(50)
end if
// JavaScript syntax
if (voiceGetRate() < 50) {
voiceSetRate(50);
}
voiceWordPos()
voiceGetRate()
581

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