LogoLogo
  • Go to Docs Center
  • Plum DEV Documentation
  • Overview
  • Developer Reference
    • Tutorial
    • How to...
      • Use Plum's Transcription API
    • Audio Formats and Prompts
    • Grammars and Speech Recognition
    • Available ASR Engines
    • TTS Engine Characteristics
      • Amazon Polly TTS Engine
        • Polly Voice Tag Attribute Details
      • AT&T Natural Voices
      • Cepstral Engine
      • RealSpeak Engine
      • Vocalizer 7
        • Vocalizer 7: <voice> tag and SSML Support
    • Data Exchange
    • Logging
    • Caching
    • Root Documents
  • VoiceXML
    • Tags
      • <assign>
      • <audio>
      • <block>
      • <break>
      • <catch>
      • <choice>
      • <clear>
      • <data>
      • <desc>
      • <disconnect>
      • <else>
      • <elseif>
      • <emphasis>
      • <enumerate>
      • <error>
      • <example>
      • <exit>
      • <field>
      • <filled>
      • <foreach>
      • <form>
      • <goto>
      • <grammar>
      • <help>
      • <if>
      • <initial>
      • <item>
      • <lexicon>
      • <link>
      • <log>
      • <mark>
      • <menu>
      • <meta>
      • <metadata>
      • <noinput>
      • <nomatch>
      • <one-of>
      • <option>
      • <paragraph>
      • <param>
      • <phoneme>
      • <prompt>
      • <property>
      • <prosody>
      • <record>
      • <reprompt>
      • <return>
      • <rule>
      • <ruleref>
      • <say-as>
      • <script>
      • <sentence>
      • <speak>
      • <sub>
      • <subdialog>
      • <submit>
      • <tag>
      • <throw>
      • <token>
      • <transfer>
      • <value>
      • <var>
      • <voice>
      • <vxml>
    • Properties
      • audiofetchhint
      • audiomaxage
      • audiomaxstale
      • bargein
      • bargeintype
      • certverifypeer
      • completetimeout
      • confidencelevel
      • datafetchhint
      • datamaxage
      • datamaxstale
      • documentfetchhint
      • documentmaxage
      • documentmaxstale
      • fetchaudio
      • fetchaudiodelay
      • fetchaudiominimum
      • fetchtimeout
      • grammarfetchhint
      • grammarmaxage
      • grammarmaxstale
      • incompletetimeout
      • inputmodes
      • interdigittimeout
      • logging
      • maxnbest
      • maxspeechtimeout
      • normalizeaudio
      • recordcall
      • recordcallappend
      • recordutterance
      • recordutterancetype
      • scriptfetchhint
      • scriptmaxage
      • scriptmaxstale
      • sensitivity
      • speedvsaccuracy
      • termchar
      • termmaxdigits
      • termtimeout
      • timeout
      • universals
      • voicegender
      • voicename
    • Application and Session Variables
      • application.lastresult$[i].confidence
      • application.lastresult$[i].inputmode
      • application.lastresult$[i].interpretation
      • application.lastresult$[i].recording
      • application.lastresult$[i].recordingduration
      • application.lastresult$[i].recordingsize
      • application.lastresult$[i].utterance
      • session.callrecording
      • session.id
      • session.telephone.ani
      • session.telephone.dnis
    • VoiceXML Resources
  • Plum DEV Guide
    • Using the Plum DEV site
    • Using the File Repository
    • Outbound Calling Guide
      • Using the Outbound Tools in the DEV web UI
      • DEV Outbound Programming Notes
      • Outbound FAQs and Tips
    • Call Reporting
    • Analytics
    • VoiceTrends
    • Debugging
    • Scratchpads
    • Saved URLs
    • Voice Biometrics
    • Call Routing
    • Data Security
      • 'Private' Tags
      • Managing Secure Phone Numbers
      • Sensitive Data Types
    • SMS Guide
      • Standard Short Codes
      • SMS Debugging/Error Logs
      • Additional SMS Info
    • Single Sign On
  • Plum DEV APIs
    • DEV Outbound APIs
      • Contacts CSV Formatting
      • Outbound API Parameter Notes
      • Legacy and Miscellaneous Notes
    • SMS API
    • Call Logs API
    • Call Scheduling and Pacing API
    • Transcription API
    • Application API
    • Blocklist API
Powered by GitBook
On this page
  • <prompt>
  • Attributes
  • Notes
  • Example
  • Child Tags
  • Parent Tags
  1. VoiceXML
  2. Tags

<prompt>

<prompt>

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

Attributes

Name
Data type
Description

bargein

Boolean

(defaults to true) Controls whether a user can interrupt a prompt.

bargeintype

This attribute is not supported.

cond

String

(defaults to true) An expression that must evaluate to true after conversion to Boolean in order for the prompt to played.

count

Integer

(defaults to 1) A number that allows you to emit different prompts if the user is doing something repeatedly.

xml:lang

String

timeout

String

The timeout that will be used for the following user input.

Notes

None

Example

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

Parent Tags

Previous<phoneme>Next<property>

Last updated 1 year ago

(defaults to “xml:lang” global property or the “xml:lang” attribute of the <vxml> tag) The language identifier as defined in .

, , ,, , , , , , , , , , , , ,

, , , , , , , , , , , , , ,

<audio>
<break>
<emphasis>
<enumerate>
<foreach>
<lexicon>
<mark>
<metadata>
<phoneme>
<prosody>
<sub>
<paragraph>
<say-as>
<sentence>
<speak>
<value>
<voice>
<block>
<catch>
<error>
<field>
<filled>
<foreach>
<help>
<if>
<initial>
<menu>
<noinput>
<nomatch>
<record>
<subdialog>
<transfer>
RFC3066