This document was generated from CDN thread
Created by: null on 14-10-2003 02:21:19 AM
Hi,
I have a phone number capture element, and would like to capture a user utternace for '315 232 2122', or any such number as 'three one five two three two TWENTYONE TWENTYTWO'. Does the current phone element facilitate this? I read the element specification, and it mentioned the capture of whole numbers. Please explain this if possible.
The next question would be capturing a bunch of numbers using number capture element or whatever element is right to take the utterance 'i dont know' as well. I noticed there is no generic element that would do both a number capture and words. Would this need to be addressed through a custom audium element? I could use a hotlink but then again, that would mean skipping the entire call flow when it comes across the utternace anywhere else.
thank you
venk.
Subject: RE: Phone element
Replied by: null on 14-10-2003 10:44:00 PM
Hi Venk,
The current Phone element uses the digits builtin grammar. This is why the element will not accept utterances with non single digit numbers. One solution would be to use a Form element that references the voice browsers builtin phone grammar using the "Voice Grammar" setting. If the browser's builtin phone grammar you are using does not allow this range of input, then you should create your own phone grammar and use it with a Form element.
As for your second question, you should use once again use a Form element if the current set of elements does not fit your particular needs. You could create a grammar that can handle both digit entry and certain keyword utterances. If you are using Audium 3.3, you could specify multiple grammar file references, one for your digit/number grammar and one for your keyword grammar (as long as the browser you are using allows multiple grammar tags for a single field). You would have to use a decision element after the Form element to analyze the result to see if the caller said "i don't know" or a valid phone number.
Regards,
Joe