User Guide

voicePause() 583
Example
These statements load the computers text-to-speech engine and then test for whether the text-to-
speech engine has completed loading before using the
voiceSpeak() command to speak the
phrase “Welcome to Shockwave.”:
-- Lingo syntax
err = voiceInitialize()
if err = 1 then
voiceSpeak("Welcome to Shockwave")
else
alert "Text-to-speech software failed to load."
end if
// JavaScript syntax
err = voiceInitialize();
if (err == 1) {
voiceSpeak("Welcome to Shockwave");
} else {
alert("Text-to-speech software failed to load.");
}
See also
voiceCount(), voiceSet(), voiceGet()
voicePause()
Usage
voicePause()
Description
Command; pauses 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 cause the text-to-speech engine to pause when the user clicks the mouse:
-- Lingo syntax
on mouseUp
voicePause()
end mouseUp
// JavaScript syntax
function mouseUp() {
voicePause();
}
See also
voiceSpeak(), voiceResume(), voiceStop(), voiceGetRate(), voiceSetRate(),
voiceGetPitch(), voiceSetPitch(), voiceGetVolume(), voiceSetVolume(),
voiceState(), voiceWordPos()