error passing dialogflow query parameters in built-in speech grammar

11 views
Skip to first unread message

Matteo Pastrorio

unread,
Mar 4, 2026, 8:58:59 AM (3 days ago) Mar 4
to UniMRCP
Hi, 
i have the gdf and gss plugins setup qith asterisk. 
I'm trying to pass some dialogflow query parameters in  built-in speech grammar: i read that 'Since GDF 1.9.0, query parameters can also be specified as input attributes to the built-in speech grammar' as follows:

builtin:speech/transcribe?timeZone=Europe/Paris;geoLocation={"latitude": 48.85,"longitude": 2.29}

but, for some reason, the DEFINE GRAMMAR take only the last element

,"longitude": 2.29}

as if the comma causes some trouble. I already tried to escape it in multiple ways, but the behaviour does not change. If i pass a single parameter, the grammar works fine, but i need multiple parameters in this project. Any help?

I attach the comploete arguments of SynthAndRecog:

EXEC "SynthAndRecog" "\" \",\"builtin:intent/00000000-0000-0000-0000-000000000000?gapp-credentials-file=[credentials].json;projectid=[id];agent=[id];location=global;api=v3;parameters= {'latitude': 48.85,'longitude': 2.29}\",plt=1&b=0&sct=1300&sint=18000&nit=10000&nif=json&spl=it&ct=0.2&sl=0.3&vg=female&p=uni2_gdf&pr=medium"



Daniel Friedman

unread,
Mar 4, 2026, 9:08:40 AM (3 days ago) Mar 4
to uni...@googlegroups.com

Hi,

 

Take a look at Vahagn’s answer related to this problem (escape the semicolon or change the delimiter):

 

Hi 

you need to escape this ";" . or you need change grammar delimiter to anything else probably to $.

 

you can use our github as reference for escaping or passing gd like this and changing ";" character to $ in grammar   plt=1&b=0&sct=1300&sint=18000&nit=10000&nif=json&spl=it&ct=0.2&sl=0.3&vg=female&p=uni2_gdf&pr=medium&gd=$

 

 

Regards,

 

Daniel Friedman

Trixton LTD.

 

Tel: 972.72.2557000

Mobile: 972.50.6655579

 

Email: da...@3xton.com

Website: http://www.3xton.com

 

LOGO trans- 3xton-01

--
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 visit https://groups.google.com/d/msgid/unimrcp/d29f3bb1-f42e-4775-8d5e-8301659374d2n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages