Creating User Interfaces VoiceXML. Examples. Classwork/Homework: Make proposal and start work on your VoiceXML project.
Rock paper scissors Person against "computer". The computer makes moves at random. NOTE: there are rps contests involving paper and involving computer programs! – Perhaps programs find patterns in pseudo-random processing? – Extra credit posting opportunity.
My program erfaces/rps.xml Could be better, specifically – Insert pauses in speech. – Could also use recorded audio. – Note: your program should use recorded audio when possible.
rps program structure Variables Script Menu, with prompts, nomatch, noinput, and 5 choice(s) Form for each option – Form has block has audio
Examine code erfaces/rps.xml erfaces/rps.xml Note overall logic and then fine points – Break – Values – Text used for TTS
Example: family greeting Includes – Using my own wav files Recorded using Quick Time then convert to wav using media.io – [Alternate item. Could use more testing.] – Asking for a number (built-in grammar) – Doing calculation (subtraction) – Uses a break statement
Examine code lme/whoisthisfamily3.xml lme/whoisthisfamily3.xml Note overall logic At one point, I didn't repeat the number of cranes. Places for improvement include – Timing – Confirming responses
Procedure After planning strategy… Write or update file Check out in browser to catch xml errors Use Filezilla (or other FTP) to get on the web Voxeo Account Account Manager – Make new application or update application in Voxeo – Use View file – Contact Methods Make call (use PIN)
Debugging Assumes proper format! Account – Application Debugger
Refinement Recruit others to test and listen to feedback. Put in (more) breaks. Think about re-prompt messages. Record your own audio files. – Keep the backup TTS content ???
Advice Always do the View File – To make sure that your latest is what is being tested – May indicate VoiceXML errors Make haste slowly… Always save last working copy – Git helps!
Classwork / homework Make proposal Do project! – Repeat: work incrementally