VoiceXML 2.1 Development Guide Home  |  Frameset Home


<media>  element


The media element extends the VoiceXML audio element by providing additional attributes. This implementation by Voxeo adds attributes for soundlevel and speed based on the W3C VoiceXML 3.0 draft.


usage

<media soundLevel="(+/-|CSS2 Number|dB)" speed="(x% where x is a positive real value)">


attributes

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". The maximum gain value is +12.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 is affected. Valid values range from 25% to 400%. 



shadow variables

none


parents

<prompt>


children

none


code samples

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



additional links

W3C VoiceXML 3.0 Draft Specification


  ANNOTATIONS: EXISTING POSTS
0 posts - click the button below to add a note to this page

login



© 2013 Voxeo Corporation  |  Voxeo IVR  |  VoiceXML & CCXML IVR Developer Site