| VoiceXML 2.1 Development Guide | Home | Frameset Home |
|
| ANNOTATIONS: EXISTING POSTS |
DaveMorris
|
|
| Has anybody tried to use the credit card expiration grammar? The only way I can get it to work is by saying the full month name and the year, for example, "April 2006". It does not seem to want to take "oh four oh six" as is common practice.
Dave |
|
mikethompson
|
|
| Hello Dave,
I have tested both of your utterances to work successfully with my code snippet. You will find sample code below. Make sure you speak as clearly as possible, as I spoke the utterance as "oh four oh six" with flawless results. Cheers, Mike Thompson Voxeo Extreme Support -----Sample Code----- <?xml version="1.0" encoding="UTF-8"?> <vxml version="2.1" xmlns:voxeo="http://community.voxeo.com/xmlns/vxml"> <form id="F1"> <field name="F_1"> <grammar src="credit_card_expiration.grammar#VLIB_CREDIT_CARD_EXPIRATION" type="text/gsl"/> <prompt> what is the credit card expiration date? </prompt> <filled> <log expr="'***** EXPIRATION =' + lastresult$.interpretation.choice"/> You said <value expr="F_1"/> dude. That is amazing </filled> </field> </form> </vxml> |
|
22911
|
|
| Has anyone used the military_alphabet.grammar? If so, I would really appreciate any samples of how to use it as I am getting internal errors.
Thanks in advance!!!!!!! |
|
22911
|
|
| I should have mentioned this in the last message: The error I am am getting on the military_alphabet.grammar is:
VoiceException: error.noresource MRCP Recognition Error |
|
mikethompson
|
|
| Hello,
The GSL grammar library we have has only been tested on VoiceCenter 5.5, so it may be possible Prophecy does not like some of the syntax in the grammar. I might have a sample alphabet grammar you can use, but I will not have access to the directory until Monday. As such, I will post back tomorrow with my findings. Best, Mike Thompson Voxeo Corporation |
|
mikethompson
|
|
| Hello,
Attached you will find an Alphanumeric grammar coded in grXML format. While it is not GSL, grXML is becoming the standard for VoiceXML, while GSL is on its way out. As such, I recommend you familiarize yourself with grXML/SRGS grammars. Also, this is not primed for words like alpha and bravo, but it would be easy to modify it as such. Here's our tutorial section on grXML grammars: http://docs.voxeo.com/voicexml/2.0/mot_appendixj.htm Hope this helps, Mike Thompson Voxeo Corporation |
|
amaghazaji
|
|
| links dont work, example credit card date | |
jdyer
|
|
| Hi,
Likes like an error on our end, I have already corrected this in the master documentation, so in the next build of our documentaitoin this has been addressed. However below you will find the link to the prebuilt grammar library so you can go ahead and download it now. http://community.voxeo.com/library/grammar/grammars.zip Thanks for letting us know about this error! Please let us know if we can be of any further assistance, we are always more then happy to assist! Regards, John D. Customer Engineer Voxeo Support |
|
KoleS
|
|
| When using yours us_money grammar as a result i get something like this:
Speech recognition result 0= | _interpretationconfidence=0.65 | _confidence=0.65 | vmlslot0=return([<dollars add(mul(100 $h) $u)> <cents $c>]) | _grammar_id=0 | _inputmode=voice | _utterance=two hundred four twelve | _inputconfidence=0.65 in my debbugger how can i make the grammar to return the value of the spoken money amount cheers from Poland Dominik |
|
voxeoJeffK
|
|
| Hello Dominik,
The return will be filled into the field variable. So for <field name="F_1"> It will be in the variable "F_1" : <filled> You said <value expr="F_1"/>. </filled> Regards, Jeff Kustermann Voxeo Support |
|
KoleS
|
|
| Hello JeffK thanks for the quick anwser.
Still it dosen't return the expected value. ;/ Speech recognition result 0= | _interpretationconfidence=0.7 | _confidence=0.7 | vmlslot0=return([<dollars $d>]) | _grammar_id=0 | _inputmode=voice | _utterance=fifty dollars | _inputconfidence=0.7 01480 f437 8:24:43 PM XML(test, line 13): filled mode="any" 01481 f437 8:24:43 PM XML(test, line 50): value expr="test" 01482 f437 8:24:43 PM TTS: return([<dollars $d>]) RTSP MESSAGE(i): RTSP/1.0 200 OK Session: 13171a6afa2a6416e33b3ab5ef89bc8f-2093645453-8e60b0d0-0000143c-0000338f Cseq: 12 Content-Type: application/mrcp Content-Length: 34 MRCP/1.0 13282007 407 COMPLETE 01560 bc8f 8:28:07 PM Got an MRCP error during speak. Throwing as a core exception com.mot.mrcp.MrcpException: Got an error MRCP Response code of 407: com.mot.mrcp.mrcpv1.client.messages.MrcpResponseMessage@4c0e53 at .... (and so one) this shows my debbugger and here is the form that i'm using <form id="test"> <field name="test"> <grammar type="text/gsl" src="/files/us_money.grammar#LIB_US_MONEY"/> <prompt> Say something. </prompt> </field> <filled mode="any"> <value expr="test"/> </filled> </form> nothing happens afert the voice input the application think for a while and exits I'm trying to build a mixed-initiative dialog but without the above code I'm stuck. Any ideas how can I build it? the mixed-initative would be smth like this (in gsl notation) TRANSFER [ (?please transfer LIB_US_MONEY) {<action "mixed">} ( transfer ) {<action "transfer">} etc. ] the amout of the money i would extrac from the .utterance with an regexp or maybe i could return it to slot but so far I failed edit: i'm using voxeo 9.0 Cheers Dominik |
|
MattHenry
|
|
|
Hello Dominick, Bearing in mind that this grammar in particular is pretty ancient, I think that whats needed here is the inclusion of a new top-level rule: NEW_TOP_LEVEL_RULE [ LIB_US_MONEY:z {<yourFieldNameHere $z>} ] ~Matt |
| login |
|