How to set vad-mode and speech-complete-timeout as builtin grammar parameters

124 views
Skip to first unread message

Massimiliano Rastelli

unread,
Aug 9, 2023, 11:16:32 AM8/9/23
to UniMRCP
Right now I'm setting some parameters on the grammar directly from the asterisk dialplan:

...
same => n,SpeechActivateGrammar(builtin:speech/transcribe?single-utterance=${ASR_SINGLEUTTERANCE}\;language=${ASR_LANGUAGE})
...

I would like to be able to configure the vad-mode and speech-complete-timeout parameters but it seems they are not received if passed in the same way.

How can I do this?


Massimiliano Rastelli

unread,
Aug 16, 2023, 2:52:52 AM8/16/23
to UniMRCP
Has no one ever done such a thing?

Vahagn Kocharyan

unread,
Aug 18, 2023, 10:31:53 AM8/18/23
to UniMRCP
Hi 
 builtin:speech/transcribe?speech-complete-timeout=1000

if your have any issue share your logs
Thanks

Massimiliano Rastelli

unread,
Aug 21, 2023, 6:51:02 AM8/21/23
to UniMRCP
Thank you Vahagn,
it seems that unlike the others, the parameter "speech-complete-timeout " is not recognized.
The same thing also happens for the "vad-mode" parameter.
Basically it seems that not all parameters can be passed in this way, or must be passed with a different name but the documentation is not clear about this.

Do you have any idea about it?

builtin:speech/transcribe?single-utterance=false;language=it-IT;speech-complete-timeout=1300

2023-08-21 08:35:30:806128 [INFO]   Process RECOGNIZE Request <ec8386563fec11ee@speechrecog> [2]

2023-08-21 08:35:30:806255 [WARN]   Unknown Parameter [speech-complete-timeout] <ec8386563fec11ee@gsr>


Best regards,

Massimiliano

Arsen Chaloyan

unread,
Oct 20, 2023, 5:38:28 PM10/20/23
to uni...@googlegroups.com
Hi Massimiliano,

It is true that you can pass vendor-specific parameters as input arguments to the built-in grammar. All the parameters which can be specified in that way are listed in this section. However, you should be using the standard MRCP header fields SPEECH-COMPLETE-TIMEOUT and SENSITIVITY-LEVEL for the other two parameters you referred to, per this section.

--
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+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/unimrcp/473325fd-9771-4ffc-a70d-67c0c31d525dn%40googlegroups.com.


--
Arsen Chaloyan
Author of UniMRCP
http://www.unimrcp.org
Reply all
Reply to author
Forward
0 new messages