User Guide

584 Chapter 12: Methods
voiceResume()
Usage
voiceResume()
Description
Command; resumes the speech output to the text-to-speech engine. The command returns a
value of 1 if it is successful, or 0 if it is not.
Parameters
None.
Example
These statements resume the speech when the playhead moves to the next frame in the Score:
-- Lingo syntax
on exitFrame
voiceResume()
end exitFrame
// JavaScript syntax
function exitFrame() {
voiceResume();
}
See also
voiceSpeak(), voicePause(), voiceStop(), voiceGetRate(), voiceSetRate(),
voiceGetPitch(), voiceSetPitch(), voiceGetVolume(), voiceSetVolume(),
voiceState(), voiceWordPos()
voiceSet()
Usage
voiceSet(integer)
Description
Command: Sets the current voice of the text-to-speech synthesis. If successful, the command
returns the new value that was set. Use
voiceCount() to determine the number of available
voices.
Parameters
integer
Required. An integer that specifies the number of the text-to-speech voice to use.
The valid range of values depends on the number of voices installed on the user’s computer.
If an out-of-range value is specified, the voice is set to the nearest valid value.
Example
This statement sets the current text-to-speech voice to the third voice installed on the
user’s computer:
voiceSet(3)
See also
voiceInitialize(), voiceCount(), voiceGet()