| VoiceXML 2.1 Development Guide | Home | Frameset Home |
media element extends the VoiceXML audio element by providing additional attributes. This early implementation by Voxeo adds attributes for soundlevel and speed.
| soundLevel | Data Type: (+/-|CSS2 Number|dB) | Default: Optional (+0.0dB) |
| The soundLevel attribute controls audio gain defined in terms of decibles, or dB levels. Setting this attribute to a large negative number will mute the media. To reduce the media amplitude by 50% of its current level, you can specify a setting of "-6.0db" and similarly, to double the current media amplitude, specify "+6.0dB". For example, soundLevel="+1.0dB"Note: You must specify a "+" or "-" for this attribute. | ||
| speed | Data Type: (x% where x is a positive real value) | Default: 100% |
| The speed attribute controls the percentage of the playback speed of media in relation to the original playback speed. Pitch will be affected. | ||
| <?xml version="1.0" encoding="UTF-8"?>
<vxml version = "2.1"> <form id="F1"> <block> <prompt bargein="true" xml:lang="en-US"> <media soundLevel="+1.0dB" speed="200%"> This <media> is <media soundLevel="-1.0dB">a</media> <media speed="50%">media</media> test. </media> </media> </prompt> </block> </form> </vxml> |
| ANNOTATIONS: EXISTING POSTS |
| login |