Error getting tags :
error 404Error getting tags :
error 404 revSpeak | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
revSpeak
Basics
Expander triangle
Type
Command
Syntax
revSpeak phraseToSpeak
Introduced
2.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows
Security
None required
Summary
Speaks text through the computer's speakers.
Examples

revSpeak "Hello world"
revSpeak field "Biography Text"

Additional Comments
Expander triangle

Use the revSpeak command to use the computer's text-to-speech capability.

Parameters:

The phraseToSpeak is a string of any length.

Comments:

The revSpeak command uses the voice, pitch, and speed specified by the revSetSpeechVoice, revSetSpeechPitch, and revSetSpeechSpeed commands. If you haven't used these commands during the current session to specify a voice, pitch, or speed, the system's settings are used.

Note: If you execute the revSpeakcommand while another speech is being spoken, the first speech is stopped and the second speech begins immediately. To find out whether the computer is already speaking, use the revIsSpeakingfunction, as in the following example:

if revIsSpeaking then answer "Just a moment..."

else revSpeak it

Important! If your application uses text to speech, you should execute the revUnloadSpeechcommand either when your application is finished using text to speech, when the stack that uses speech is closed (in a closeStackhandler), or when your application quits (in a shutdownhandler). This saves memory.

If text to speech is not available on the current system, the revSpeak command sets the result function to an error message.

Important! The revSpeakcommand is part of the Speech library. To ensure that the command works in a standalone application, you must include this custom library when you create your standalone. In the Inclusions section on the General screen of the Standalone Application Settings window, make sure "Speech" is selected in the list of script libraries.

User Comments
Expander triangle