[VoIP] ASR Program
Peter Duffield
pd at pjd.org.uk
Mon Apr 7 12:08:23 CDT 2008
Lee, you don't appear to have the line which sets the language, in which case
it defaults to German. Here's the one I'm using from the wiki.......
[operatordemo]
exten => s,1,Ringing()
exten => s,n,Set(l=2) ; U.S. English
exten => s,n,Wait(1)
exten => s,n,Answer
exten => s,n,Ringing()
exten => s,n,Noop(${CALLERID(all)})
exten => s,n,ASR(t1l${l}d) ; 1 millisecond to prime the server connection
after long idle time
exten => s,n,Wait(1)
exten => s,n(num),Playback(numplse) ; "Number please"
exten => s,n(asr),ASR(t20000l${l}d) ; Accept digits for up to 20 seconds with
default timeout
exten => s,n,Noop(${ASRMSG})
exten => s,n,Gotoif($"${ASRMSG}" != "Server timeout"?want) ; Recognition
failure
exten => s,n,Playback(server&connection-failed)
exten => s,n(want),Playback(numwant) "What number are you wanting, please?"
exten => s,n,Goto(asr)
;
exten => _digits.,1,Noop(${ASRMSG})
exten => _digits.,n,SayDigits(${EXTEN:6}) ; tell him what we heard him say
exten => _digits.,n,Playback(trying) ; "I'm trying to get them"
exten => _digits.,n,Goto(${EXTEN:6},1)
; include here enough of a dialplan to validate the number given
; or maybe even an enum lookup.
exten => 21,1,Goto(regularcontext,${EXTEN},1) ; for example, 21 might be a
valid extension
exten => _NXXNXXXXXX,1,Goto(regularcontext,${EXTEN},1) ; and we might have
local ten digit numbers
;etc
exten => i,1,Playback(invalid) ; if it doesn't match the above, give him
another chance
exten => i,2,Goto(s,want) ; without having to hang up.
Peter
On Mon, 7 Apr 2008 11:26:31 -0400, "Lee Spenadel" <spenadel at gmail.com> wrote:
>I cut and pasted the code. I don't see any "I" in the code, just an
>exclamation point in the enum lookup code.
>
>[cnetdemo]
>exten => s,1,Wait(1)
>exten => s,n,Answer()
>exten => s,n,Wait(1)
>exten => s,n(num),Playback(numplse)
>exten => s,n(asr),ASR(12d6-)
>exten => s,n,Playback(numwant)
>exten => s,n,Goto(asr)
>
>exten => _digits.,1,SayDigits(${EXTEN:6})
>exten => _digits.,n,Goto(cnetgatelookup,${EXTEN:6},1)
>
>But since I can't even get a correct read back on the spoken numbers, the
>enum lookup isn't even an issue. I did change the name of the contexts, but
>the pe
>
>
>Lee
>
>
>
>-----Original Message-----
>From: voip-bounces at ckts.info [mailto:voip-bounces at ckts.info] On Behalf Of
>Russ Price
>Sent: Monday, April 07, 2008 11:12 AM
>To: Voice Over IP Tandem for Analog Switches
>Subject: Re: [VoIP] ASR Program
>
>Lee Spenadel wrote:
>> I took Russ' tweaked ASR program for Asterisk 1.4 and installed it. It
>> worked well recognizing my speech 3 or 4 times, but now consistently
>> misreads my verbal input - no matter how clearly I articulate the numbers.
>> Likewise, I have no problem on John Covert's implementation of the ASR
>code.
>> I'm using the extensions.conf code straight out of the example from the
>> archives. Are there other tweaks that can be made so that I get better
>> recognition?
>
>About the only thing I can think of is to make sure that the "l's" in
>John's code are really the letter "l" and not the digit "1" or a
>vertical bar. The font used on the VOIP wiki doesn't make it clear.
>
>I've found that I have to carefully pronounce "two" in a staccato
>manner, because if there's a "tail" of sound at the end, it will
>consistently decide that I said "oh" instead of "two."
>
> Russ
> CNET +1 442 7877
>
>_______________________________________________
>VoIP mailing list
>VoIP at ckts.info
>http://lists.ckts.info/mailman/listinfo/voip
>Project Web Page: http://www.ckts.info/
>
>_______________________________________________
>VoIP mailing list
>VoIP at ckts.info
>http://lists.ckts.info/mailman/listinfo/voip
>Project Web Page: http://www.ckts.info/
More information about the VoIP
mailing list