Page 1 of 1
Recognizing user name
Posted: Wed Nov 01, 2006 6:16 pm
by jtmerch
Hello, I'm looking to setup a prompt that recognizes a user's name as part of a form that will require user input. First I'd ask the user to say their name, then I'd like for the name to be stored in a variable as text before I post it along with the other values in a form. Is there something or some example that shows me how something like this could be accomplished?
IVR system cannot recognize open-ended utterances
Posted: Thu Nov 02, 2006 6:19 pm
by support
Hi,
First, the list of all possible names to match/recognize must be built into an IVR
grammar. The IVR system cannot recognize open-ended utterances.
A very basic IVR example (this is intended to be illustrative and has not been debugged... caveat emptor):
<var name="callerName" /> <!-- store the name at document level scope here so that it is accessible in other forms -->
<form id="getCallerName">
<property name="inputmodes" value="voice" />
<field name="matchName">
<grammar mode="voice">Peter | Paul | Mary </grammar>
<prompt>
Please say your first name.
</prompt>
<filled>
<assign name="callerName" expr="matchName" />
your name is <value expr="callerName" />
<!-- and now do something else interesting... -->
</filled>
</field>
</form>
Hope this helps,
Plum Support