| VoiceXML 2.1 Development Guide | Home | Frameset Home |
|
| ANNOTATIONS: EXISTING POSTS |
parit
|
|
| hi,
Am writing a grammar where words can have synonyms.But the problem is some of the words can have the same synonyms like the grammar below: <grammar type="application/text-gsl" mode="voice"> <![CDATA[ [ [(marie cruz) (marie)] {<dept "030">} [(marie washington) (marie)] {<dept "040">} ] ]]> </grammar> so what will be the slot value in this case. I tried it out and it was always the last one. I want to confirm if this is the default behavior. If so then how to specify synonyms in grammar? -Parit |
|
voxeo.benb
|
|
| Hello,
Unfortunately, I don't see a way to do what you're asking. You're asking the system to pick between Marie and Marie, which are the same utterance. Unless I'm misunderstanding you, the system has no way to differentiate between the two. If I am misunderstanding you, please feel free to clarify, so we may further assist you. Thanks, Ben Bohn |
|
sathya.boopathi
|
|
| Hi,
Can anybody say me how to write a gsl grammar for EMail?. Thanks in advance. |
|
mikethompson
|
|
| Hello Sathya,
I should start off by letting you know, this is no easy feat. When you think about all of the possible combinations and strange characters involved with an e-mail address, you might start seeing the obstacles. For example, you'll need to include utterances for the below characters: at: @ underscore: _ dash: - period: . dot: . com: com net: net org: org the list goes on... For your convenience, I happen to have an already built alpha-numeric grammar for you to look at. This should give you a solid foundation to modify the attached script into your own e-mail address grammar. Bear in mind, this will only catch the simplest of utterances. For example: JetMan1234@hotmail.com should be spoken as such: j-e-t-m-a-n-one-two-three-four-at-h-o-t-m-a-i-l-dot-com In essence, this will be a grammar which allows you to spell out the e-mail address. It is not smart enough to capture complex utterances like: Jet, Man, twelve, thirty four, at, hotmail, dot, com. Hope this helps, Mike Thompson Voxeo Corporation |
|
raja.gutha
|
|
| Can You please send gsl grammar for EMail?. Thanks in advance.
Regards Raja |
|
mikethompson
|
|
| Hi Raja,
Unfortunately, we do not have a canned e-mail grammar. However, if you'll take a look at the post above yours, I provided a great template to get started on coding an e-mail grammar. We also have a huge library of pre-made grammars you can access here: https://evolution.voxeo.com/library/grammar/library.jsp Hope this helps, Mike Thompson Voxeo Corporation |
| login |
|