The sr_talkoff instruction enables/disables speech recognition during the prompt.
Synopsis
sr_talkoff(flag)
Description
The sr_talkoff instruction is used to enable or disable speech recognition during the prompt (barge-in). When speech recognition during prompt is enabled using sr_talkoff(1), the getinput instruction starts playing any phrases in its queue and simultaneously turns on the recognizer. When speech recognition during prompt is disabled with sr_talkoff(0), getinput plays any phrases in its queue, then turns on the recognizer. Caller speech or touch-tone input interrupts any of the phrases that were started with the getinput. If a tflush instruction is used to initiate phrases immediately before the getinput, the recognize during prompt does not apply to those phrases (because the recognizer is not on).
Because playing prompts uses speech resources, application designers who find that the speech resources are strained may want to consider designing the application to use as few speech processor resources as possible.
Example
In this example, speech recognition is enabled during the prompt.
sr_talkoff(1)