Plum DEV Documentation

This is an old revision of the document!

Table of Contents


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.


<?xml version="1.0"?>
<vxml version="2.0">
    <property name="bargein" value="false"/>
    <field name="myfield">
      <grammar type="application/x-jsgf" mode="voice">
        ( one | two )+
      <prompt bargein="false">
        You must listen to this message.
      <prompt bargein="true">
        Say any number of the digits one or two.
        You said <value expr="myfield"/>.
        You did not say any ones or twos.
        You did not say anything.


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.