We have
already seen how we can prompt the user to select an option. But how do we
actually do speech recognition?
Interactive Voice
[ 170 ]
We offer three pizzas on our voice application: Vegi Delight, Bacons Cheese Treat,
and Pepperoni Spice. If we asked the user which pizza they want, and just caught
any of the words in pizza's names, we can understand what's the match. Let's make
the grammar for this.
lang="en-US">
- vegi ]]>
- delight
]]>
- pepperoni
]]>
- spice
]]>
- bacon
]]>
- cheese
]]>
- treat
]]>
If you observe the above code, you will notice it's quite simple.
Pages:
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228