> For the complete documentation index, see [llms.txt](https://docs.plumvoice.com/dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.plumvoice.com/dev/voicexml/tags/prompt-tag.md).

# \<prompt>

## \<prompt> <a href="#prompt" id="prompt"></a>

The `<prompt>` element controls the output of synthesized speech and prerecorded audio.

### Attributes

<table><thead><tr><th width="174.33333333333331">Name</th><th width="159">Data type<select><option value="b4d77c21b4434981b389940c97dfe695" label="String" color="blue"></option><option value="cff329fcff2b47e4943bc40108e3e659" label="Integer" color="blue"></option><option value="e2f7b5d5649741df87f28038369061f6" label="Boolean" color="blue"></option></select></th><th>Description</th></tr></thead><tbody><tr><td>bargein</td><td><span data-option="e2f7b5d5649741df87f28038369061f6">Boolean</span></td><td>(defaults to true) Controls whether a user can interrupt a prompt.</td></tr><tr><td>bargeintype</td><td></td><td>This attribute is not supported.</td></tr><tr><td>cond</td><td><span data-option="b4d77c21b4434981b389940c97dfe695">String</span></td><td>(defaults to true) An expression that must evaluate to true after conversion to Boolean in order for the prompt to played.</td></tr><tr><td>count</td><td><span data-option="cff329fcff2b47e4943bc40108e3e659">Integer</span></td><td>(defaults to 1) A number that allows you to emit different prompts if the user is doing something repeatedly.</td></tr><tr><td>xml:lang</td><td><span data-option="b4d77c21b4434981b389940c97dfe695">String</span></td><td>(defaults to “xml:lang” global property or the “xml:lang” attribute of the &#x3C;vxml> tag) The language identifier as defined in <a href="http://www.ietf.org/rfc/rfc3066.txt">RFC3066</a>.</td></tr><tr><td>timeout</td><td><span data-option="b4d77c21b4434981b389940c97dfe695">String</span></td><td>The timeout that will be used for the following user input.</td></tr></tbody></table>

### Notes

None

### Example

```markup
<?xml version="1.0"?>
<vxml version="2.0">
  <form>
    <block>
      <prompt bargein="false">
        You have to wait until the end of this sentence
        before you'll be able to interrupt this prompt.
      </prompt>
    </block>
    <field name="myfield">
      <grammar type="application/x-jsgf">
        ( 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | "#" | "*" )+
      </grammar>
      <prompt bargein="true">
        Now you can press any DTMF button and the prompt will
        be interrupted.
      </prompt>
      <filled>
        <prompt>
          You entered <value expr="myfield"/>
        </prompt>
      </filled>
    </field>
  </form>
</vxml>
```

The output of the above script would be:

> Computer: You have to wait until the end of this sentence…\
> Human: (enters DTMF-1)\
> Computer: (disregards input)\
> Computer: …before you'll be able to interrupt the audio with DTMF.\
> Computer: Now you can press any DTMF button and…\
> Human: (enters DTMF-5)\
> Computer: You entered five.

### Child Tags

[\<audio>](/dev/voicexml/tags/audio-tag.md), [\<break>](/dev/voicexml/tags/break-tag.md), [\<emphasis>](/dev/voicexml/tags/emphasis-tag.md),[ \<enumerate>](/dev/voicexml/tags/enumerate-tag.md), [\<foreach>](/dev/voicexml/tags/foreach-tag.md), [\<lexicon>](/dev/voicexml/tags/lexicon-tag.md), [\<mark>](/dev/voicexml/tags/mark-tag.md), [\<metadata>](/dev/voicexml/tags/metadata-tag.md), [\<phoneme>](/dev/voicexml/tags/phoneme-tag.md), [\<prosody>](/dev/voicexml/tags/prosody-tag.md), [\<sub>](/dev/voicexml/tags/sub-tag.md), [\<paragraph>](/dev/voicexml/tags/paragraph-tag.md), [\<say-as>](/dev/voicexml/tags/say-as-tag.md), [\<sentence>](/dev/voicexml/tags/sentence-tag.md), [\<speak>](/dev/voicexml/tags/speak-tag.md), [\<value>](/dev/voicexml/tags/value-tag.md), [\<voice>](/dev/voicexml/tags/voice-tag.md)

### Parent Tags

[\<block>](/dev/voicexml/tags/block-tag.md), [\<catch>](/dev/voicexml/tags/catch-tag.md), [\<error>](/dev/voicexml/tags/error-tag.md), [\<field>](/dev/voicexml/tags/field-tag.md), [\<filled>](/dev/voicexml/tags/filled-tag.md), [\<foreach>](/dev/voicexml/tags/foreach-tag.md), [\<help>](/dev/voicexml/tags/help-tag.md), [\<if>](/dev/voicexml/tags/if-tag.md), [\<initial>](/dev/voicexml/tags/initial-tag.md), [\<menu>](/dev/voicexml/tags/menu-tag.md), [\<noinput>](/dev/voicexml/tags/noinput-tag.md), [\<nomatch>](/dev/voicexml/tags/nomatch-tag.md), [\<record>](/dev/voicexml/tags/record-tag.md), [\<subdialog>](/dev/voicexml/tags/subdialog-tag.md), [\<transfer>](/dev/voicexml/tags/transfer-tag.md)
