developer_guide:voicexml_references:elements:audio

Differences

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

Link to this comparison view

developer_guide:voicexml_references:elements:audio [2015/10/13 21:20]
borja created
developer_guide:voicexml_references:elements:audio [2015/10/28 14:39] (current)
borja
Line 4: Line 4:
  
 The <audio> element plays an audio file.  If the file cannot be played, the content of the <audio> element is played instead.  The alternate content may be text, speech markup, or another <audio> element. The <audio> element plays an audio file.  If the file cannot be played, the content of the <audio> element is played instead.  The alternate content may be text, speech markup, or another <audio> element.
 +
 ===== Syntax ===== ===== Syntax =====
  
Line 67: Line 68:
 </code> </code>
  
-If the URI is prefixed also with “uri:rstp://…”, then the Vxi  will plays the RTSP video stream.  Example: ''<audio src=__GESHI_QUOT__uri:rtsp:'' //''server.com/samples/video.mp4__GESHI_QUOT__ /> ''+If the URI is prefixed also with “uri:rstp://…”, then the interpreter will plays the RTSP video stream.  Example: ''<audio src=__GESHI_QUOT__uri:rtsp:'' //''server.com/samples/video.mp4__GESHI_QUOT__ /> ''
  
 If the property “control” is set to “true” (<property name=”control” value=”true”/>), the GSM and wav prompt can be controlled with VCR type controls like DTMF keys.  (See the control keys configured in the configuration file). Start position can be set adding “:” and the value of the offset. After the prompt the position can be get with the object “offset” (see the tag <object>). If the property “control” is set to “true” (<property name=”control” value=”true”/>), the GSM and wav prompt can be controlled with VCR type controls like DTMF keys.  (See the control keys configured in the configuration file). Start position can be set adding “:” and the value of the offset. After the prompt the position can be get with the object “offset” (see the tag <object>).
Line 77: Line 78:
 </code> </code>
  
-If the URI is prefixed with “cli:”, then the Vxi will execute the command in the src/expr attribute (remember that this attribut don't support space, so replace them by underscore (“ “ → “_”). The VoiceXML browser disable the CLI execution by default. Enable it if needed by setting the parameter  cli in the general section to “yes”.+If the URI is prefixed with “cli:”, then the interpreter will execute the command in the src/expr attribute (remember that this attribut don't support space, so replace them by underscore (“ “ → “_”). The Asterisk module disable the CLI execution by default. Enable it if needed by setting the parameter  cli in the general section to “yes”.
  
 Example: Example:
Line 85: Line 86:
 </code> </code>
  
-If the URI is prefixed with “exec:”, “application:” or “app:”, then the Vxi will execute the application and the parameters specified in the src/expr attribute.+If the URI is prefixed with “exec:”, “application:” or “app:”, then the interpreter will execute the application and the parameters specified in the src/expr attribute.
  
 Example: Example:
Line 93: Line 94:
 </code> </code>
  
-If the URI is prefixed with “record:”, then the Vxi will try to find a file in the record directory. If you are using the mark option, the files will be separated by folders set with the 'mark' value.+If the URI is prefixed with “record:”, then the interpreter will try to find a file in the record directory. If you are using the mark option, the files will be separated by folders set with the 'mark' value.
  
 Example: Example:
Line 101: Line 102:
 </code> </code>
  
-If the URI is prefixed with “uri:”, then the Vxi will try to find a file in the Asterisk audio base, this executes something like Playback(demo-echotest). The value after the prefix is the reference of a prerecorded audio file in the asterisk /var/lib/asterisk/sounds/. You can set or not the asterisk extension/format (.gsm or .wav for example).+If the URI is prefixed with “uri:”, then the interpreter will try to find a file in the Asterisk audio base, this executes something like Playback(demo-echotest). The value after the prefix is the reference of a prerecorded audio file in the asterisk /var/lib/asterisk/sounds/. You can set or not the asterisk extension/format (.gsm or .wav for example).
  
 <code> <code>
  • developer_guide/voicexml_references/elements/audio.txt
  • Last modified: 2015/10/28 14:39
  • by borja