Loading...
Loading...
Loading...
The barge-in function allows user input, speech or DTMF, to interrupt the play of prompts. A prompt in this case can be a .wav file or text-to-speech (TTS).
The spoken utterance or DTMF tone does not have to match anything for barge-in to occur. The VXML specification has an option for requiring a grammar match, but Edge currently does not support it. Architect sets the default barge-in to true for all audio except for the Hold Music audio, which defaults to false for historical reasons.
You can set barge-in behavior for each individual queued prompt. When the system plays the prompt, it honors the barge-in setting for each prompt. However, after barge-in triggers, it skips the currently playing prompt to be aborted, as well as any prompts that remain in the queue, regardless of their barge-in settings.
VXML’s queue-based architecture for playing audio is efficient and also key to supporting smooth . However, if you encounter a case that requires you to flush queued audio sooner than waiting on flow termination or the next request for user input, add a Flush Audio action to the location in the flow where you want the system to flush the audio.
At times, Architect forces audio to flush behind the scenes by injecting a VXML <field > with a 1 millisecond timeout. This action occurs in these scenarios:
For more information, see Flush Audio action.
In Architect, three operations obtain user input:
Upon entry to any of these operations, the system flushes or plays any audio that is queued because of previous calls to Play Audio, Play Estimated Wait Time action, or any other element that contains audio.