Avaya Logo

Previous Topic

Next Topic

Book Contents

Book Index

Speech-flushing instructions

Some instructions cause the script to wait by forcing any speech phrases or text that have been queued by the talk, ftalk, tchar, tnum, fsay, or say instructions to play before the instruction itself is executed. Thus, the actual wait occurs before the instruction is executed. These instructions are:

dbase()
exec()
execu()
getinput()
nwitime()
phremove()
phreserve()
quit()
setftalk()
setalk()
sleep()
sr_talkoff()
subprog
talkresume()
tfile()
tflush()
tic()

If any of these instructions are executed while there is speech queued for playing, the speech is played and the script waits for the play to complete before executing the instruction. Playing speech also causes any touch tones that have been received by the script and not yet retrieved with getinput to be thrown away unless the setttfl instruction has been used to enable the type_ahead feature.

One exception, where a wait for speech is not caused, is when the tflush instruction is used with its second argument set to 1. This causes any queued speech to be played and spun off. The script continues execution without waiting for the play to complete.

There is no timeout imposed by TSM on a wait for speech to finish playing. TSM depends on a message from the voice system to tell it when to resume script execution after the play has stopped.

© 2006 Avaya Inc. All Rights Reserved.