User Guide

717
voiceGetPitch()
Syntax
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.
Example
These statements check whether the pitch of the current voice is above 10 and set it to 10 if it is:
if voiceGetPitch() > 10 then
voiceSetPitch(10)
end if
See also
voiceSpeak(), voicePause(), voiceResume(), voiceStop(), voiceGetRate(),
voiceSetRate(), voiceSetPitch(), voiceGetVolume(), voiceSetVolume(), voiceState(),
voiceWordPos()
voiceGetRate()
Syntax
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.
Example
These statements check whether the rate of speech synthesis is below 50 and set it to 50 if it is:
if voiceGetRate() < 50 then
voiceSetRate(50)
end if
See also
voiceSpeak(), voicePause(), voiceResume(), voiceStop(), voiceSetRate(),
voiceGetPitch(), voiceSetPitch(), voiceGetVolume(), voiceSetVolume(),
voiceState(), voiceWordPos()
voiceGetVolume()
Syntax
voiceGetVolume()
Description
Function: returns the current volume of the text-to-speech synthesis. The value returned is an
integer. The valid range of values depends on the operating system platform.