0" encoding="UTF-8"?>
assign(digit $return)
]]>
- 0 return ("zero")
- 1 return ("one")
- 9 return ("nine")
3. In the grammar file we defined that the value should be populated in the
option field name using a
element. Once the field is filled, we would
like to navigate the user to another form we will create. The following code
shows how we can handle this. Add this code after the line in
index.xml.
Interactive Voice
[ 166 ]
4. We don't have a form with id callChef, or the order.xml file, but let's go
ahead and run this code. It will welcome the caller, prompt her or him to
make a choice, and act on the choice if valid! When you press 1 or 9, you will
hear an error message because the form/file does not exists.
Pages:
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221