Working Configuration for GSR Plugin

448 views
Skip to first unread message

Abdul Rehman Rajput

unread,
Jul 2, 2017, 1:43:23 AM7/2/17
to UniMRCP
Dears,

I am looking for a working configuration of the GSR plugin. I have setup the license and everything. However, I keep on getting "Grammar Load" and "Unable to recognize Speech Errors".

I have followed the instructions on a few posts here but no luck.

Any help would be appreciated.

Asterisk 13 / UnimRCP 1.4



My Dial Plan
***************

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


Console Log -  ERRORS Highlighted in Yellow below
*************************************************************

- Executing [*7@from-internal:1] Answer("SIP/100-00000008", "") in new stack
       > 0x7f4b18013710 -- Probation passed - setting RTP source address to 10.8.2.2:62936
    -- Executing [*7@from-internal:2] MRCPRecog("SIP/100-00000008", "builtin:speech/number,p=default&t=5000&b=1&ct=0.7&spl=en-US&f=hello-world") in new stack
[2017-07-02 05:31:21] NOTICE[29349][C-00000008]: app_mrcprecog.c:1067 app_recog_exec: MRCPRecog() grammar: builtin:speech/number
[2017-07-02 05:31:21] NOTICE[29349][C-00000008]: app_mrcprecog.c:1087 app_recog_exec: MRCPRecog() options: p=default&t=5000&b=1&ct=0.7&spl=en-US&f=hello-world
[2017-07-02 05:31:21] DEBUG[29349][C-00000008]: app_mrcprecog.c:968 mrcprecog_options_parse: Apply option p: default
[2017-07-02 05:31:21] DEBUG[29349][C-00000008]: app_mrcprecog.c:968 mrcprecog_options_parse: Apply option t: 5000
[2017-07-02 05:31:21] DEBUG[29349][C-00000008]: app_mrcprecog.c:968 mrcprecog_options_parse: Apply option b: 1
[2017-07-02 05:31:21] DEBUG[29349][C-00000008]: app_mrcprecog.c:968 mrcprecog_options_parse: Apply option ct: 0.7
[2017-07-02 05:31:21] DEBUG[29349][C-00000008]: app_mrcprecog.c:968 mrcprecog_options_parse: Apply option spl: en-US
[2017-07-02 05:31:21] DEBUG[29349][C-00000008]: app_mrcprecog.c:968 mrcprecog_options_parse: Apply option f: hello-world
[2017-07-02 05:31:21] DEBUG[29349][C-00000008]: audio_queue.c:253 audio_queue_create: (ASR-8) Audio queue created
[2017-07-02 05:31:21] DEBUG[29349][C-00000008]: speech_channel.c:257 speech_channel_create: Created speech channel: Name=ASR-8, Type=RECOGNIZER, Codec=PCMU, Rate=8000 on SIP/100-00000008
[2017-07-02 05:31:21] NOTICE[29349][C-00000008]: src/mrcp_application.c:117 : Create MRCP Handle 0x7f4b1401f598 [vcloud-ventures]
[2017-07-02 05:31:21] NOTICE[29349][C-00000008]: src/mrcp_client_session.c:131 : Create Channel ASR-8 <new>
[2017-07-02 05:31:21] DEBUG[29349][C-00000008]: src/apt_task.c:263 : Signal Message to [MRCP Client] [0x7f4b140089c0;4;0]
[2017-07-02 05:31:21] DEBUG[2562]: src/apt_task.c:335 : Process Message [MRCP Client] [0x7f4b140089c0;4;0]
[2017-07-02 05:31:21] NOTICE[2562]: src/mrcp_client_session.c:385 : Receive App Request ASR-8 <new> [2]
[2017-07-02 05:31:21] NOTICE[2562]: src/mrcp_client.c:696 : Add MRCP Handle ASR-8 <new>
[2017-07-02 05:31:21] DEBUG[2562]: src/mrcp_client_session.c:1277 : Dispatch App Request ASR-8 <new> [2]
[2017-07-02 05:31:21] DEBUG[2562]: src/apt_task.c:263 : Signal Message to [MRCPv2ConnectionAgent] [0x7f4b14008a50;1;0]
[2017-07-02 05:31:21] NOTICE[2562]: src/mrcp_client_session.c:717 : Add Control Channel ASR-8 <new@speechrecog>
[2017-07-02 05:31:21] DEBUG[2562]: src/mrcp_client_session.c:743 : Add Media Termination ASR-8 <new@media-tm>
[2017-07-02 05:31:21] DEBUG[2562]: src/mrcp_client_session.c:772 : Add Media Termination ASR-8 <new@rtp-tm>
[2017-07-02 05:31:21] DEBUG[2562]: src/apt_task.c:263 : Signal Message to [MediaEngine] [0x7f4b1400f8c0;1;0]
[2017-07-02 05:31:21] DEBUG[2562]: src/apt_consumer_task.c:135 : Wait for Messages [MRCP Client]
[2017-07-02 05:31:21] DEBUG[2563]: src/apt_poller_task.c:259 : Process Poller Wakeup [MRCPv2ConnectionAgent]
[2017-07-02 05:31:21] DEBUG[2563]: src/apt_task.c:335 : Process Message [MRCPv2ConnectionAgent] [0x7f4b14008a50;1;0]
[2017-07-02 05:31:21] DEBUG[2563]: src/apt_task.c:263 : Signal Message to [MRCP Client] [0x7f4b10003400;2;0]
[2017-07-02 05:31:21] DEBUG[2563]: src/apt_poller_task.c:249 : Wait for Messages [MRCPv2ConnectionAgent]
[2017-07-02 05:31:21] DEBUG[2562]: src/apt_task.c:335 : Process Message [MRCP Client] [0x7f4b10003400;2;0]
[2017-07-02 05:31:21] DEBUG[2562]: src/mrcp_client_session.c:292 : Control Channel Added ASR-8 <new@speechrecog>
[2017-07-02 05:31:21] DEBUG[2562]: src/apt_consumer_task.c:135 : Wait for Messages [MRCP Client]
[2017-07-02 05:31:21] DEBUG[2564]: src/apt_task.c:335 : Process Message [MediaEngine] [0x7f4b1400f8c0;1;0]
[2017-07-02 05:31:21] DEBUG[2564]: src/mpf_context.c:180 : Add Media Context ASR-8
[2017-07-02 05:31:21] DEBUG[2564]: src/apt_task.c:263 : Signal Message to [MRCP Client] [0x7f4b28412d50;3;0]
[2017-07-02 05:31:21] DEBUG[2562]: src/apt_task.c:335 : Process Message [MRCP Client] [0x7f4b28412d50;3;0]
[2017-07-02 05:31:21] DEBUG[2562]: src/mrcp_client_session.c:939 : Media Termination Added ASR-8 <new@media-tm>
[2017-07-02 05:31:21] DEBUG[2562]: src/mrcp_client_session.c:939 : Media Termination Added ASR-8 <new@rtp-tm>
[2017-07-02 05:31:21] NOTICE[2562]: src/mrcp_client_session.c:409 : Send Offer ASR-8 <new> [c:1 a:1 v:0] to 10.128.0.2:8060
[2017-07-02 05:31:21] NOTICE[2562]: src/mrcp_sofiasip_client_agent.c:301 : Local SDP ASR-8 <new>
v=0
o=VCLOUD 0 0 IN IP4 10.128.0.2
s=-
c=IN IP4 10.128.0.2
t=0 0
m=application 9 TCP/MRCPv2 1
a=setup:active
a=connection:new
a=resource:speechrecog
a=cmid:1
m=audio 4016 RTP/AVP 0 8 96 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:96 L16/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendonly
a=ptime:20
a=mid:1

[2017-07-02 05:31:21] DEBUG[2562]: src/apt_consumer_task.c:135 : Wait for Messages [MRCP Client]
[2017-07-02 05:31:21] NOTICE[2566]: src/mrcp_sofiasip_client_agent.c:556 : Receive SIP Event [nua_i_state] Status 0 INVITE sent [vcloud-ventures]
[2017-07-02 05:31:21] NOTICE[2566]: src/mrcp_sofiasip_client_agent.c:494 : SIP Call State ASR-8 [calling]
[2017-07-02 05:31:21] NOTICE[2566]: src/mrcp_sofiasip_client_agent.c:556 : Receive SIP Event [nua_r_invite] Status 200 OK [vcloud-ventures]
[2017-07-02 05:31:21] NOTICE[2566]: src/mrcp_sofiasip_client_agent.c:556 : Receive SIP Event [nua_i_state] Status 200 OK [vcloud-ventures]
[2017-07-02 05:31:21] NOTICE[2566]: src/mrcp_sofiasip_client_agent.c:494 : SIP Call State ASR-8 [ready]
[2017-07-02 05:31:21] NOTICE[2566]: src/mrcp_sofiasip_client_agent.c:380 : Remote SDP ASR-8 <new>
v=0
o=UniMRCPServer 7601958913655605839 2782730077431845358 IN IP4 10.128.0.2
s=-
c=IN IP4 10.128.0.2
t=0 0
m=application 1544 TCP/MRCPv2 1
a=setup:passive
a=connection:new
a=channel:57d3cca4b8fb4ac6@speechrecog
a=cmid:1
m=audio 5008 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=recvonly
a=ptime:20
a=mid:1

[2017-07-02 05:31:21] DEBUG[2566]: src/apt_task.c:263 : Signal Message to [MRCP Client] [0x7f4b18004510;1;0]
[2017-07-02 05:31:21] NOTICE[2566]: src/mrcp_sofiasip_client_agent.c:556 : Receive SIP Event [nua_i_active] Status 200 Call active [vcloud-ventures]
[2017-07-02 05:31:21] DEBUG[2562]: src/apt_task.c:335 : Process Message [MRCP Client] [0x7f4b18004510;1;0]
[2017-07-02 05:31:21] NOTICE[2562]: src/mrcp_client_session.c:149 : Receive Answer ASR-8 <new> [c:1 a:1 v:0] Status 200
[2017-07-02 05:31:21] DEBUG[2562]: src/mrcp_client_session.c:1136 : Modify Control Channel ASR-8 <57d3cca4b8fb4ac6>
[2017-07-02 05:31:21] DEBUG[2562]: src/apt_task.c:263 : Signal Message to [MRCPv2ConnectionAgent] [0x7f4b14006610;1;0]
[2017-07-02 05:31:21] DEBUG[2562]: src/mrcp_client_session.c:1174 : Modify Media Termination ASR-8 <57d3cca4b8fb4ac6@rtp-tm>
[2017-07-02 05:31:21] DEBUG[2562]: src/apt_task.c:263 : Signal Message to [MediaEngine] [0x7f4b1400f8c0;1;0]
[2017-07-02 05:31:21] DEBUG[2562]: src/apt_consumer_task.c:135 : Wait for Messages [MRCP Client]
[2017-07-02 05:31:21] DEBUG[2563]: src/apt_poller_task.c:259 : Process Poller Wakeup [MRCPv2ConnectionAgent]
[2017-07-02 05:31:21] DEBUG[2563]: src/apt_task.c:335 : Process Message [MRCPv2ConnectionAgent] [0x7f4b14006610;1;0]
[2017-07-02 05:31:21] NOTICE[2563]: src/mrcp_client_connection.c:336 : Established TCP/MRCPv2 Connection 10.128.0.2:56444 <-> 10.128.0.2:1544
[2017-07-02 05:31:21] NOTICE[2563]: src/mrcp_client_connection.c:433 : Add Control Channel <57d3cca4b8fb4ac6@speechrecog> 10.128.0.2:56444 <-> 10.128.0.2:1544 [1]
[2017-07-02 05:31:21] DEBUG[2563]: src/apt_task.c:263 : Signal Message to [MRCP Client] [0x7f4b10000dd0;2;1]
[2017-07-02 05:31:21] DEBUG[2563]: src/apt_poller_task.c:249 : Wait for Messages [MRCPv2ConnectionAgent]
[2017-07-02 05:31:21] DEBUG[2562]: src/apt_task.c:335 : Process Message [MRCP Client] [0x7f4b10000dd0;2;1]
[2017-07-02 05:31:21] DEBUG[2562]: src/mrcp_client_session.c:309 : Control Channel Modified ASR-8 <57d3cca4b8fb4ac6@speechrecog>
[2017-07-02 05:31:21] DEBUG[2562]: src/apt_consumer_task.c:135 : Wait for Messages [MRCP Client]
[2017-07-02 05:31:21] DEBUG[2564]: src/apt_task.c:335 : Process Message [MediaEngine] [0x7f4b1400f8c0;1;0]
[2017-07-02 05:31:21] NOTICE[2564]: src/mpf_rtp_stream.c:328 : Enable RTP Session 10.128.0.2:4016
[2017-07-02 05:31:21] DEBUG[2564]: src/mpf_bridge.c:153 : Create Null Audio Bridge ASR-8
[2017-07-02 05:31:21] NOTICE[2564]: src/mpf_rtp_stream.c:918 : Open RTP Transmitter 10.128.0.2:4016 -> 10.128.0.2:5008
[2017-07-02 05:31:21] NOTICE[2564]: src/mpf_bridge.c:91 : Media Path ASR-8 Source->[PCMU/8000/1]->Bridge->[PCMU/8000/1]->Sink
[2017-07-02 05:31:21] DEBUG[2564]: src/apt_task.c:263 : Signal Message to [MRCP Client] [0x7f4b28412d50;3;0]
[2017-07-02 05:31:21] DEBUG[2562]: src/apt_task.c:335 : Process Message [MRCP Client] [0x7f4b28412d50;3;0]
[2017-07-02 05:31:21] DEBUG[2562]: src/mrcp_client_session.c:980 : Media Termination Modified ASR-8 <57d3cca4b8fb4ac6@rtp-tm>
[2017-07-02 05:31:21] NOTICE[2562]: src/mrcp_client_session.c:453 : Raise App Response ASR-8 <57d3cca4b8fb4ac6> [2] SUCCESS [0]
[2017-07-02 05:31:21] DEBUG[2562]: app_mrcprecog.c:252 speech_on_channel_add: (ASR-8) speech_on_channel_add
[2017-07-02 05:31:21] DEBUG[2562]: app_mrcprecog.c:267 speech_on_channel_add: (ASR-8) DTMF generator created
[2017-07-02 05:31:21] NOTICE[2562]: app_mrcprecog.c:279 speech_on_channel_add: (ASR-8) Channel ready codec=PCMU, sample rate=8000
[2017-07-02 05:31:21] DEBUG[2562]: speech_channel.c:108 speech_channel_set_state_unlocked: (ASR-8) CLOSED ==> READY
[2017-07-02 05:31:21] DEBUG[2562]: src/apt_consumer_task.c:135 : Wait for Messages [MRCP Client]
[2017-07-02 05:31:21] DEBUG[29349][C-00000008]: speech_channel.c:509 speech_channel_open: (ASR-8) channel is ready
[2017-07-02 05:31:21] DEBUG[29349][C-00000008]: app_mrcprecog.c:1177 app_recog_exec: (ASR-8) Determine grammar type: builtin:speech/number
[2017-07-02 05:31:21] DEBUG[29349][C-00000008]: app_mrcprecog.c:631 recog_channel_load_grammar: (ASR-8) Loading grammar name=grammar-0, type=text/uri-list, data=builtin:speech/number
[2017-07-02 05:31:21] DEBUG[29349][C-00000008]: app_mrcprecog.c:1217 app_recog_exec: (ASR-8) Add prompt: hello-world
[2017-07-02 05:31:21] NOTICE[29349][C-00000008]: app_mrcprecog.c:1295 app_recog_exec: (ASR-8) Recognizing, enable DTMFs: 2, start input timers: 0
[2017-07-02 05:31:21] DEBUG[29349][C-00000008]: speech_channel.c:627 speech_channel_set_params: (ASR-8) Recognition-Timeout: 5000
[2017-07-02 05:31:21] DEBUG[29349][C-00000008]: speech_channel.c:627 speech_channel_set_params: (ASR-8) Confidence-Threshold: 0.7
[2017-07-02 05:31:21] DEBUG[29349][C-00000008]: speech_channel.c:627 speech_channel_set_params: (ASR-8) Speech-Language: en-US
[2017-07-02 05:31:21] DEBUG[29349][C-00000008]: src/apt_task.c:263 : Signal Message to [MRCP Client] [0x7f4b1400f690;4;0]
[2017-07-02 05:31:21] DEBUG[2562]: src/apt_task.c:335 : Process Message [MRCP Client] [0x7f4b1400f690;4;0]
[2017-07-02 05:31:21] NOTICE[2562]: src/mrcp_client_session.c:390 : Receive App MRCP Request ASR-8 <57d3cca4b8fb4ac6>
[2017-07-02 05:31:21] NOTICE[2562]: src/mrcp_client_session.c:620 : Send MRCP Request ASR-8 <57d3cca4b8fb4ac6@speechrecog> [1]
[2017-07-02 05:31:21] DEBUG[2562]: src/apt_task.c:263 : Signal Message to [MRCPv2ConnectionAgent] [0x7f4b14008b80;1;0]
[2017-07-02 05:31:21] DEBUG[2562]: src/apt_consumer_task.c:135 : Wait for Messages [MRCP Client]
[2017-07-02 05:31:21] DEBUG[2563]: src/apt_poller_task.c:259 : Process Poller Wakeup [MRCPv2ConnectionAgent]
[2017-07-02 05:31:21] DEBUG[2563]: src/apt_task.c:335 : Process Message [MRCPv2ConnectionAgent] [0x7f4b14008b80;1;0]
[2017-07-02 05:31:21] NOTICE[2563]: src/mrcp_client_connection.c:528 : Send MRCPv2 Data 10.128.0.2:56444 <-> 10.128.0.2:1544 [277 bytes]
MRCP/2.0 277 RECOGNIZE 1
Channel-Identifier: 57d3cca4b8fb4ac6@speechrecog
Content-Type: text/uri-list
Cancel-If-Queue: false
Start-Input-Timers: false
Recognition-Timeout: 5000
Confidence-Threshold: 0.7
Speech-Language: en-US
Content-Length: 21

builtin:speech/number
[2017-07-02 05:31:21] DEBUG[2563]: src/apt_poller_task.c:249 : Wait for Messages [MRCPv2ConnectionAgent]
[2017-07-02 05:31:21] DEBUG[2563]: src/apt_poller_task.c:267 : Process Signalled Descriptor [MRCPv2ConnectionAgent]
[2017-07-02 05:31:21] NOTICE[2563]: src/mrcp_client_connection.c:633 : Receive MRCPv2 Data 10.128.0.2:56444 <-> 10.128.0.2:1544 [125 bytes]
MRCP/2.0 125 1 409 COMPLETE
Channel-Identifier: 57d3cca4b8fb4ac6@speechrecog
Completion-Cause: 004 grammar-load-failure


[2017-07-02 05:31:21] DEBUG[2563]: src/apt_task.c:263 : Signal Message to [MRCP Client] [0x7f4b10000e30;2;3]
[2017-07-02 05:31:21] DEBUG[2563]: src/apt_poller_task.c:249 : Wait for Messages [MRCPv2ConnectionAgent]
[2017-07-02 05:31:21] DEBUG[2562]: src/apt_task.c:335 : Process Message [MRCP Client] [0x7f4b10000e30;2;3]
[2017-07-02 05:31:21] NOTICE[2562]: src/mrcp_client_session.c:498 : Raise App MRCP Response ASR-8 <57d3cca4b8fb4ac6>
[2017-07-02 05:31:21] DEBUG[2562]: app_mrcprecog.c:734 recog_on_message_receive: (ASR-8) RECOGNIZE failed: status = 409, completion-cause = 004
[2017-07-02 05:31:21] DEBUG[2562]: speech_channel.c:108 speech_channel_set_state_unlocked: (ASR-8) READY ==> ERROR
[2017-07-02 05:31:21] DEBUG[2562]: src/apt_consumer_task.c:135 : Wait for Messages [MRCP Client]
[2017-07-02 05:31:21] ERROR[29349][C-00000008]: app_mrcprecog.c:1299 app_recog_exec: (ASR-8) Unable to start recognition
[2017-07-02 05:31:21] DEBUG[29349][C-00000008]: speech_channel.c:353 speech_channel_destroy: Destroy speech channel: Name=ASR-8, Type=RECOGNIZER, Codec=PCMU, Rate=8000
[2017-07-02 05:31:21] DEBUG[29349][C-00000008]: src/apt_task.c:263 : Signal Message to [MRCP Client] [0x7f4b14006300;4;0]

Abdul Rehman Rajput

unread,
Jul 3, 2017, 4:07:26 PM7/3/17
to UniMRCP
Guys any help would be appreciated ?

Arsen Chaloyan

unread,
Jul 3, 2017, 4:10:12 PM7/3/17
to UniMRCP
You should use builtin:speech/transcribe in MRCPRecog() as follows

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

BTW, corresponding guides for basic usage from Asterisk and FreeSWITCH are available:

There is really not too much to configure on the server side, unless you want to specify custom speech contexts.


--
You received this message because you are subscribed to the Google Groups "UniMRCP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to unimrcp+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Arsen Chaloyan
Author of UniMRCP
http://www.unimrcp.org

Abdul Rehman Rajput

unread,
Jul 4, 2017, 2:18:29 AM7/4/17
to UniMRCP
Thanks for continued support, I am really looking to get this GSR plugin, but the issue is that the recognition is not too optimal or accurate.

Any suggestions to get it working more accurately. Google, can't be that bad !

To unsubscribe from this group and stop receiving emails from it, send an email to unimrcp+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Arsen Chaloyan

unread,
Jul 4, 2017, 4:06:33 PM7/4/17
to UniMRCP
The GSR plugin has been tested by a number of users and I have not heard any problems with regards to the accuracy.

Can you be more specific. For instance, what was the expected results and what did you get instead. Server logs, network capture, saved utterance might be required to find out what is really going on.

To unsubscribe from this group and stop receiving emails from it, send an email to unimrcp+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Abdul Rehman Rajput

unread,
Jul 6, 2017, 11:27:47 PM7/6/17
to UniMRCP
Thanks Arsen, I am testing and will share my feedback.

Quick question, in what variable is the DTMF input stored on MRCPRecog ?

Arsen Chaloyan

unread,
Jul 7, 2017, 1:45:03 PM7/7/17
to UniMRCP
Sure, Rehman, take your time and share your experience with us.

As for the DTMFs, only RFC2833 DTMFs are currently supported by the GSR plugin, support for in-band DTMFs can be added, if needed.

In order to activate DTMF detection, you need to specify a builtin grammar as follows

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

It accepts optional input parameters "length", "minlength", "maxlength", which can be specified, for example, as follows

builtin:dtmf/digits?length=4

Both speech and DTMF detection can be used simultaneously, if specified, for example, as follows

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

The result is returned in the NLSML format as for speech.


To unsubscribe from this group and stop receiving emails from it, send an email to unimrcp+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Rehman

unread,
Jul 7, 2017, 1:54:41 PM7/7/17
to uni...@googlegroups.com
Sorry, I think I wasn't able to explain my question.

I would like to have MRCPRecog listen for both, Speech or DTMF input ?

If the user puts in a number via Keypad, in that case the DTMF would take precedence over speech recognition and the required action would be performed.

Thanks,




--
Best Regards,
Rehman
Voice : +971-55-3157060
IM: a.re...@gmail.com



--
You received this message because you are subscribed to a topic in the Google Groups "UniMRCP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/unimrcp/XuxJtxNHxJQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to unimrcp+unsubscribe@googlegroups.com.

Arsen Chaloyan

unread,
Jul 7, 2017, 3:02:36 PM7/7/17
to UniMRCP
Your requirements are quite clear. Activate both speech and DTMF grammars.


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

Whether user speaks or presses DTMFs, MRCPRecog will eventually complete returning results to the Asterisk dialplan. It is up to you to analyze the results and execute next action accordingly.

Rehman

unread,
Jul 7, 2017, 3:14:18 PM7/7/17
to uni...@googlegroups.com
Thanks, that was great help :-)




--
Best Regards,
Rehman
Voice : +971-55-3157060
IM: a.re...@gmail.com



Abdul Rehman Rajput

unread,
Jul 19, 2017, 8:17:12 AM7/19/17
to UniMRCP
Thanks Guys, great support !

I have this issue in BARGE IN, I have been trying to optimize it 

,MRCPRecog(builtin:speech/transcribe,p=default&t=10000&b=1&ct=0.60&sct=60000&spl=en-US&f=say-nobeep)

There is a recognition timeout from Google; that is it takes a couple of seconds to return the response and the audio over the channel keeps streaming (its the buffered audio), the actual audio from the source stops though.

I want the audio being played to immediately stop as soon as there is an utterance.

Thanks,


On Sunday, 2 July 2017 09:43:23 UTC+4, Abdul Rehman Rajput wrote:

Arsen Chaloyan

unread,
Jul 19, 2017, 11:13:47 PM7/19/17
to UniMRCP
As soon as you start speaking, a START-OF-INPUT event should be triggered by the plugin/server and be sent to the client. Further, if you have barge-in enabled in MRCPRecog (b=1), the prompt should stop playing straightaway.

The recognition timeout is not related to start of input detection. If needed, you can adjust sensitivity of speech input detector (see Section 4.4. in the GSR Usage Guide), although the defaults should be sufficient for most of the cases.

--
You received this message because you are subscribed to the Google Groups "UniMRCP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to unimrcp+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages