Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grammar load failure Asterisk 13 Centos #12

Closed
adeshpandey opened this issue Jun 10, 2017 · 1 comment
Closed

Grammar load failure Asterisk 13 Centos #12

adeshpandey opened this issue Jun 10, 2017 · 1 comment

Comments

@adeshpandey
Copy link

adeshpandey commented Jun 10, 2017

Hi I have successfully installed unimrcp client,server and unimrcp asterisk on my new centOS 7 server with Asterisk but when I try to use speech recognition I can not perform because it says that grammar load failure. Here is my dialplan given below:

exten => 1235,1,Answer
exten => 1235,n,MRCPRecog(builtin:grammar/number,p=default&t=5000&b=1&ct=0.7&spl=en-US&f=hello-world)
same=>n,Verbose(1, ${RECOGSTATUS}, ${RECOG_COMPLETION_CAUSE},${RECOG_RESULT})
exten => 1235,Hangup

and the error what I receive is :

builtin:grammar/number
[Jun 10 08:34:07] NOTICE[2440]: src/mrcp_client_connection.c:633 : Receive MRCPv2 Data 10.0.0.117:48704 <-> 10.0.0.117:1544 [125 bytes]
MRCP/2.0 125 1 406 COMPLETE
Channel-Identifier: 6b2df9bddc39466b@speechrecog
Completion-Cause: 004 grammar-load-failure


[Jun 10 08:34:07] NOTICE[2439]: src/mrcp_client_session.c:498 : Raise App MRCP Response ASR-10 <6b2df9bddc39466b>
[Jun 10 08:34:07] ERROR[2755][C-00000010]: app_mrcprecog.c:1304 app_recog_exec: (ASR-10) Unable to start recognition
@achaloyan
Copy link
Contributor

If you are using the UniMRCP server with the GSR plugin, then consider specifying a builtin gramma as follows: builtin:speech/$name.

Your MRCPRecog would look like:

MRCPRecog(builtin:speech/number,p=default&t=5000&b=1&ct=0.7&spl=en-US&f=hello-world)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants