Download presentation
Presentation is loading. Please wait.
Published byNathaniel Morgan Modified over 9 years ago
1
E-commerce Lecture 3 Ravi Raman rraman@wvu.edu CERC, West Virginia University
2
Sample Code: Tapered Prompts Welcome to the ice cream survey. vanilla|chocolate|strawberry What is your favorite flavor? Say chocolate, vanilla, or strawberry. Sorry, no help is available. Source: VoiceXML Forum
3
Contents of Forms Form items –Field items –Control items Variable declarations (non-field items) Event Handlers Filled actions
4
Form Field Items Field – value to be obtained using speech or keypad input Record – an audio recording of speech input Transfer – transfer to another destination Object – invoke an external object Sub-dialog – invoke a VoiceXML dialog
5
Variables name – name of variable expr – optional initial value of variable
6
Assign Assigns a value to a variable
7
Clear Resets one or more form items –Variable is set to undefined –Prompt and event counters for those for items are reinitialized Namelist – names of the form items to be reset. Default all form items in current form.
8
Branching Logic: If, Else, Elseif Stop. Stop. Go FAST
9
Conditional Operators Must be “escaped” > “>” < “<” >= <= && Typical ECMA operators != == ||
10
Grammars Speech Grammars DTMF Grammars (keypad input)
11
Speech Grammars –Specifies speech input and corresponding actions –Grammar Formats Java Speech API Grammar Format (JSGF) –Inline or External File
12
Speech Grammars External File – Inline – genie – Exit | finished | over | end | stop | done –
13
Multilingual Phonetics The International Phonetic Association http://www2.arts.gla.ac.uk/IPA/ipa.html
14
Menus Simple form with one anonymous field Prompts user for selection Executes action based on user’s choice
15
Sample Menu Welcome home. Say one of: Sports Weather Stargazer astrophysics news Please say one of
16
Menu with DTMF Welcome home. For, press. sports weather Stargazer astrophysics news
17
Motorola Development Tools www.motorola.com/developers/wireless/tools/ –Click on link for Mobile Application Development Kit –Need to register to download tools (link at bottom of page) After registration, –login (enable cookies in browser) –Download and install Motorola IDE using link at top of the MIX Mobile ADK Download page –Fill in rest of form and download Mobile ADK –Install Motorola IDE before installing the Mobile ADK
18
Motorola Demos Motorola IDE MADK Simulator
19
E-commerce Lecture 3 Ravi Raman rraman@wvu.edu CERC, West Virginia University
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.