Plum DEV Documentation
voicexml:tags:prompt

Differences

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

Link to this comparison view

voicexml:tags:prompt [2014/05/30 10:36]
jennifer added meta description
voicexml:tags:prompt [2019/09/17 12:29]
Line 1: Line 1:
-{{description>​‹prompt› VoiceXML tag details, attributes and VXML code example | The prompt element controls the output of synthesized speech and prerecorded audio.}} 
-=====<​prompt>​===== 
- 
-The <​prompt>​ element controls the output of synthesized speech and prerecorded audio. 
-====Attributes==== 
-| bargein | (defaults to true) Controls whether a user can interrupt a prompt. | 
-| bargeintype ​ | This attribute is not supported. | 
-| cond | (defaults to true) An expression that must evaluate to true after conversion to Boolean in order for the prompt to played. | 
-| count | (defaults to 1) A number that allows you to emit different prompts if the user is doing something repeatedly. | 
-| xml:lang | (defaults to "​xml:​lang"​ global property or the "​xml:​lang"​ attribute of the <​vxml>​ tag) The language identifier as defined in [[http://​www.ietf.org/​rfc/​rfc3066.txt|RFC3066]]. | 
-| timeout | The timeout that will be used for the following user input. | 
- 
-====Notes==== 
- 
-None 
- 
-====Example==== 
-<​code>​ 
-<?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>​ 
-</​code>​ 
-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==== 
- 
-[[voicexml:​tags:​audio|<​audio>​]],​ [[voicexml:​tags:​break|<​break>​]],​ [[voicexml:​tags:​emphasis|<​emphasis>​]],​[[voicexml:​tags:​enumerate| <​enumerate>​]],​ [[voicexml:​tags:​foreach|<​foreach>​]],​ [[voicexml:​tags:​lexicon|<​lexicon>​]],​ [[voicexml:​tags:​mark|<​mark>​]],​ [[voicexml:​tags:​metadata|<​metadata>​]],​ [[voicexml:​tags:​phoneme|<​phoneme>​]],​ [[voicexml:​tags:​prosody|<​prosody>​]],​ [[voicexml:​tags:​sub|<​sub>​]],​ [[voicexml:​tags:​p|<​p>​]],​ [[voicexml:​tags:​paragraph|<​paragraph>​]],​ [[voicexml:​tags:​s|<​s>​]],​ [[voicexml:​tags:​say-as|<​say-as>​]],​ [[voicexml:​tags:​sentence|<​sentence>​]],​ [[voicexml:​tags:​speak|<​speak>​]],​ [[voicexml:​tags:​value|<​value>​]],​ [[voicexml:​tags:​voice|<​voice>​]] 
- 
- 
-====Parent Tags==== 
- 
-[[voicexml:​tags:​block|<​block>​]],​ [[voicexml:​tags:​catch|<​catch>​]],​ [[voicexml:​tags:​error|<​error>​]],​ [[voicexml:​tags:​field|<​field>​]],​ [[voicexml:​tags:​filled|<​filled>​]],​ [[voicexml:​tags:​foreach|<​foreach>​]],​ [[voicexml:​tags:​help|<​help>​]],​ [[voicexml:​tags:​if|<​if>​]],​ [[voicexml:​tags:​initial|<​initial>​]],​ [[voicexml:​tags:​menu|<​menu>​]],​ [[voicexml:​tags:​noinput|<​noinput>​]],​ [[voicexml:​tags:​nomatch|<​nomatch>​]],​ [[voicexml:​tags:​record|<​record>​]],​ [[voicexml:​tags:​subdialog|<​subdialog>​]],​ [[voicexml:​tags:​transfer|<​transfer>​]] 
-