Extension. Allows the application to suspend execution and listen to the user during an outbound call.
<bevocal:listen
name="string"
expr="js_expression"
cond="js_expression"
>
Optional Content
</bevocal:listen>
To use this tag, the containing <vxml> tag must declare the XML namespace bevocal by including the following attribute:
xmlns:bevocal="http://www.bevocal.com/"
A <bevocal:listen> element lets the application listen to the user during an active outbound call that was initiated by a <bevocal:dial> tag. During execution of the <bevocal:listen> element, the user and the called third party talk to each other. The application is quiet. No universal grammars or grammars in higher scopes are active. The application ignores all speech and DTMF signals from the called third party.
If the <bevocal:listen> element includes any child grammars, the application listens to the user. If a user utterance matches a child grammar, the <bevocal:listen> tag's input variable is set to the recognition result. The bevocal.hotwordmin and bevocal.hotwordmax properties specify the minimum and maximum time duration, respectively, for an utterance that can match a <bevocal:listen> grammar.
If a user utterance matches a child grammar, any child <filled> elements are executed in the order in which they occur. Recognition does not cause the call to terminate. If desired, a <filled> element can disconnect the call explicitly:
| | Use the <disconnect> tag to end the inbound call; doing so disconnects any outbound call and terminates the session. |
| | Use the <bevocal:disconnect> tag to terminate the outbound call and continue with the session. |
Following execution of the <bevocal:listen> element, the interpreter proceeds as usual, searching for the next form item to execute.
Note: This and other call-control tags constitute a BeVocal VoiceXML extension. Committees are currently working to standardize call-control features for VoiceXML; however, the approval of call-control standards will take some time. BeVocal VoiceXML contains this extension to allow developers to take advantage of call-control features before standards are available, even though the eventual standards are likely to be nothing like the current extension. When the features in the BeVocal VoiceXML extension become a part of VoiceXML or a separate call-control standard, BeVocal VoiceXML will implement the standard. We will then deprecate the current extension and provide developers with information on how to upgrade their applications to the new standard.
The following events may be thrown by the execution of a <bevocal:listen> element:
| Event | Description |
Properties of the Shadow Variable
Corresponding to the input variable name is a "shadow variable" called name$. After the input variable is filled, some additional information is available in the following properties of this shadow variable:
For a field whose name is name, you access the property propName of the shadow variable with the syntax:
name$.propName
For example, you access the duration property for a field named services field as:
services$.duration
|
|||
|
| Parents | Children |
|
|
| | Chapter 6, Controlling Outbound Calls |
| | Related tags: <bevocal:dial>, <bevocal:disconnect>, <bevocal:whisper> |
| Café Home |
Developer Agreement |
Privacy Policy |
Site Map |
Terms & Conditions Part No. 520-0001-02 | © 1999-2007, BeVocal, Inc. All rights reserved | 1.877.33.VOCAL |