Speak command
speaks out the given text if a suitable 'Text To Speech'(TTS) Engine has been
installed on that system.
Parameters
<message>
The text to be voiced.
Remarks
Similar to Play command, Speak command also executes in the background. Due to heavy CPU usage, the command is not recommended in higher deployments.
The quality and accent of the spoken sound completely depends upon the TTS engine. User has to buy a SAPI compatible TTS engine.
TTS engine
to be used can be specified in the configurations or if using SAPI 5.x, the
appropriate XML command can be passed to SAPI using speak. For instance, you can specify:
the type of voice required by giving the following XML command along with the text.
speak '<voice required="gender=male;age!=child">Welcome to Xtend IVR</voice>'
symbolic phonetic representation(SYM) to create the English pronunciation using the XML PRON tag. Each phoneme entry should be space limited. Let us see how to represent hello in phonemes:
speak '<PRON SYM = "h eh l ow"/>'
For more information on XML grammar, please refer Microsoft Speech SDK 5.x Help.
Example
MAIN:
Answer
speak "Welcome to Xtend IVR"
hangup
goto MAIN
ONHANGUP:
goto MAIN