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

<?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>

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