Skip to content

Instantly share code, notes, and snippets.

@johntdyer
Created June 18, 2010 03:38
Show Gist options
  • Save johntdyer/443194 to your computer and use it in GitHub Desktop.
Save johntdyer/443194 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<vxml version="2.1">
<script src="../js/vxmlECMAScript.js"/>
<form id="Form1">
<block>
<var name="baseURL" expr="'../audio'"/>
<var name="testValue" expr="'101'"/>
<var name="location" expr="'atlanta'"/>
<var name="currentConditions" expr="'thunderstorm'"/>
<log expr="'@@@@' + baseURL+'/'+location+'/greeting.wav'"/>
<audio expr="baseURL+'/'+location+'/greeting.wav'">
Welcome to <value expr="location"/>
</audio>
<log expr="'@@@@[] ' +baseURL+'/'+location+'/the_current_conditions_are.wav'"/>
<audio expr="baseURL+'/'+location+'/the_current_conditions_are.wav'">
The current conditions are
</audio>
<audio expr="baseURL+'/'+location+'/'+parseWeather(currentConditions)+'.wav'">
<value expr="currentConditions"/>
</audio>
<log expr="'@@@@[] ' + buildAudioFileArray(testValue)"/>
<foreach item="value" array="buildAudioFileArray(testValue)">
<log expr="'@@@@: ' + value"/>
<audio expr="baseURL+'/'+location+'/'+value+'.wav'" maxage="2592000" maxstale="2592000" fetchhint="prefetch">
<value expr="value"/>
</audio>
</foreach>
<audio expr="baseURL+'/'+location+'/degrees.wav'">
degrees
</audio>
<audio expr="baseURL+'/'+location+'/closing.wav'"/>
</block>
</form>
</vxml>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment