voiceGetRate()
581
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()
,
voiceWordPos()
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);
}
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...