Speak variables provide a simple mechanism for delivering text-to-speech content to a caller. However, text-to-speech delivered with a Speak variable cannot be interrupted. Some applications will require the option to skip ahead while the computer reads aloud text-to-speech, for example:
SpeakInteractive features are provided to allow callers to skip ahead of content delivery without having to wait. SpeakInteractive features differ from touch tone prompts in that the caller's touch tone input is very limited and designed primarily to allow optional skip ahead of text-to-speech output.
SpeakInteractive variables are similar to SpeakInteractiveWave variables, but SpeakInteractiveWave variables provide a much richer feature set (wave files can be fast forwarded, rewound, sped up, slowed down, etc.).
Description and Usage of the SpeakInteractive Variables
There are three variables used to control interruptible text-to-speech output: SpeakInteractive, SpeakInteractiveCommands, and SpeakInteractiveStarNode. SpeakInteractive variables are always processed after all of the Speak, SpeakWave, Record, SpeakAfterRecord, and SpeakWaveAfterRecord variables, but before the SpeakInteractiveWave variables. Their usage is as follows:
SpeakInteractive = "Press any key to skip ahead of this statement."
' Allow only options *, #.SpeakInteractiveCommands = "*#"
' Continue at Node 'Aborted' if user presses *.SpeakInteractiveStarNode = "Aborted"
Example Using SpeakInteractive Variables
The SpeakInteractive variable is used to deliver the weather in the GetWeather Node of the Internet Weather example. The SpeakInteractive variable is also used in the Voice Mail System example which is described in greater detail in the section on SpeakInteractiveWave variables.