VoiceXML and the Voice/Web Environment

by Lee Anne Phillips





Listing One

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE vxml PUBLIC "-//Nuance/DTD VoiceXML 1.0b//EN"

"http://community.voxeo.com/vxml/nuancevoicexml.dtd">

<vxml lang="en" version="1.0">

   <form id="TalkingClock">

    <noinput>

      <audio src="noinput.wav"/>

      <reprompt/>

      </noinput>

    <nomatch>

      <audio src="nomatch.wav"/>

      <reprompt/>

      </nomatch>

    <field name="Destination">

      <prompt count="">

        <audio src="welcome.wav"/>

        </prompt>

      <?voxeo-designer collapse="true"?>

      <grammar src="VXML.gsl#Timegrammar"></grammar>

      </field>

    <filled namelist="Destination">

      <if cond="Destination == &apos;time&apos;">

        <goto next="Time"/>

      <elseif cond="Destination == &apos;weather&apos;"/>

        <goto next="#Weather"/>

        </if>

      </filled>

    </form>

   <?voxeo-designer x="296" y="252" ?>

  <form id="Time">

    <block name="SayTime">

      <audio src="notime.wav"/>

      <goto next="Goodbye"/>

      </block>

    </form>

   <?voxeo-designer x="287" y="433" ?>

  <form id="Weather">

    <block name="SayWeather">

      <audio src="noweather.wav"/>

      <goto next="Goodbye"/>

      </block>

     </form>

   <?voxeo-designer x="522" y="397" ?>

  <form id="Goodbye">

      <block name="SayGoodbye">

        <audio src="goodbye.wav"/>

        <exit/>

        </block>

    </form>

 </vxml>









1



