Larson Technical Services: Voice Technology Consulting

Exercise 6.2

Audio formatting for Example 2.1.

A. Create a copy of the VoiceXML program you developed for Example 2.1.

B. Insert non-verbal sounds where you think appropriate.

C. Format the audio by appropriate chunking and pausing.

D. Conduct a user test using the audio formatted and non-audio formatted versions of Example 2.1. Are there significant changes in how the application measures against the benchmark?


<?xml version="1.0"?>
<vxml version="2.0">


<!-- Exercise 6.2   -->   


<form> 
     <block>
          <audio src = 
               "http://www.larson-tech.com/VoiceXML/Code/LIONROAR.WAV"/>
          <prompt>
               Ajax Travel <break size="small"/>
               make your travel reservations here
          </prompt>
     </block>


<field name="UserName">
     <prompt>Say your user name</prompt>
     <grammar type="application/grammar+xml" src=
               "http://www.larson-tech.com/VoiceXML/Code/username.grxml"/>
</field>


<field name="telephone">
     <prompt>Say your one digit telephone number</prompt>
     <grammar type="application/grammar+xml" src= 
               "http://www.larson-tech.com/VoiceXML/Code/telephoneNumber.grxml"/> 
</field>


     <filled> <goto next="#travel"/> </filled>
</form>  


<menu id="travel">
     <prompt>
          Do you  want to travel by plane <break size="small"/> 
          train <break size="small"/> or boat? 
     </prompt>
     <choice next="#plane">
          <grammar type="application/grammar+xml" version="1.0">
               <rule id = "by_plane" scope = "public">
                    <item> plane </item>
               </rule>
          </grammar>
     </choice>
     <choice next="#train">
          <grammar type="application/grammar+xml" version="1.0">
               <rule id = "by_train" scope = "public">
                    <item> train </item>
               </rule>
          </grammar>
     </choice>
     <choice next="#boat">
          <grammar type="application/grammar+xml" version="1.0">
               <rule id = "by_boat" scope = "public">
                    <item> boat </item>
               </rule>
          </grammar>
     </choice>
</menu>  


<form id = "plane">
     <block>
               <prompt>
                    You have selected to travel by plane  <break size="small"/>
                    Sorry <break size="small"/>
                    it is not possible to make plane reservations today <break size="small"/>
                    Goodbye
          </prompt>
     </block>
</form> 


<form id = "train">
     <block>
          <prompt>
               You have selected to travel by train  <break size="small"/>
               Sorry <break size="small"/>
               it is not possible to make train reservations today <break size="small"/>
               Goodbye
          </prompt>
     </block>
</form>  


<form id = "boat">
     <block>
          <prompt>
               You have selected to travel by boat  <break size="small"/>
               Sorry <break size="small"/>
               it is not possible to make boat reservations today <break size="small"/>
               Goodbye
          </prompt>
     </block> 
</form> 
</vxml>

Comments are off for this post