Plum DEV Documentation
voicexml:properties:bargein

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

voicexml:properties:bargein [2014/06/02 14:01]
jennifer added meta description
voicexml:properties:bargein [2019/09/17 12:29]
Line 1: Line 1:
-{{description>​bargein VoiceXML property details | The bargein attribute tells the vxml platform if a user can interrupt a prompt.}} 
-=====bargein ===== 
- 
- 
-**Default Value:** true 
- 
-The bargein attribute to use for prompts. Setting this to true allows barge-in by default. Setting it to false disallows barge-in. 
- 
-====Example==== 
-<​code>​ 
-<?xml version="​1.0"?>​ 
-<vxml version="​2.0">​ 
-  <​form>​ 
-    <​property name="​bargein"​ value="​false"/>​ 
-    <field name="​myfield">​ 
-      <grammar type="​application/​x-jsgf"​ mode="​voice">​ 
-        ( one | two )+ 
-      </​grammar>​ 
-      <prompt bargein="​false">​ 
-        You must listen to this message. 
-      </​prompt>​ 
-      <prompt bargein="​true">​ 
-        Say any number of the digits one or two. 
-      </​prompt>​ 
-      <​filled>​ 
-        You said <value expr="​myfield"/>​. 
-      </​filled>​ 
-      <​nomatch>​ 
-        You did not say any ones or twos. 
-        <​reprompt/>​ 
-      </​nomatch>​ 
-      <​noinput>​ 
-        You did not say anything. 
-        <​reprompt/>​ 
-      </​noinput>​ 
-    </​field>​ 
-  </​form>​ 
-</​vxml>​ 
-</​code>​ 
- 
-====Explanation==== 
- 
-From this example, since the original value of "​bargein"​ is set to false, the user is not allowed to interrupt the first message. When "​bargein"​ is set to true, the user is allowed to interrupt the message by saying 1 or 2. 
- 
-====Notes==== 
- 
-None 
-