Created
June 18, 2010 03:38
-
-
Save johntdyer/443194 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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