Creating User Interfaces
E N D
Presentation Transcript
Creating User Interfaces VoiceXML. Examples. Classwork/Homework: Make proposal and start work on your VoiceXML project.
Computing in the news • https://www.washingtonpost.com/news/the-fix/wp/2016/03/22/utah-republicans-are-holding-a-first-ever-online-primary-and-its-not-going-so-well/ • Note: regular voting had problems, also, due to larger than expected turnout.
Embedded computer in the news • http://www.nytimes.com/2016/03/23/business/chip-card-payment-system-delays-frustrate-retailers.html
Reminder • Computer information systems depend on • Hardware, • Software, and networks, • People, • Procedures
My formula for learning VoiceXML • Copy the example exactly. Follow procedure for Adding an Application. Try 800 phone number (or Skype). Be patient. • Make changes: first small and then larger. • Repeat with next example. • Combine examples. • Don’t try rps until you have done first 3-4 tutorials
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 • http://faculty.purchase.edu/jeanine.meyer/interfaces/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 • http://faculty.purchase.edu/jeanine.meyer/interfaces/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 • http://faculty.purchase.edu/jeanine.meyer/tellme/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