Closed Abe-Telo closed 6 years ago
I have the same issue, where you able to fix this? My API is reading and come up with <SIP/2018-000051cd>AGI Script speech-recog.agi completed, returning 0 But it wont let me to talk, it just says -1
Thanks very much for your assistance.
Here is the full output of AGI debug. Asterisk 13.17.1, Centos 7.3
-- Executing [2017@india:3] AGI("SIP/2018-000051cd", "speech-recog.agi,en-EN") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/speech-recog.agi <SIP/2018-000051cd>AGI Tx >> agi_request: speech-recog.agi <SIP/2018-000051cd>AGI Tx >> agi_channel: SIP/2018-000051cd <SIP/2018-000051cd>AGI Tx >> agi_language: en <SIP/2018-000051cd>AGI Tx >> agi_type: SIP <SIP/2018-000051cd>AGI Tx >> agi_uniqueid: 1527178246.147414 <SIP/2018-000051cd>AGI Tx >> agi_version: 13.17.1 <SIP/2018-000051cd>AGI Tx >> agi_callerid: 2018 <SIP/2018-000051cd>AGI Tx >> agi_calleridname: IT-Paul <SIP/2018-000051cd>AGI Tx >> agi_callingpres: 0 <SIP/2018-000051cd>AGI Tx >> agi_callingani2: 0 <SIP/2018-000051cd>AGI Tx >> agi_callington: 0 <SIP/2018-000051cd>AGI Tx >> agi_callingtns: 0 <SIP/2018-000051cd>AGI Tx >> agi_dnid: 2017 <SIP/2018-000051cd>AGI Tx >> agi_rdnis: unknown <SIP/2018-000051cd>AGI Tx >> agi_context: india <SIP/2018-000051cd>AGI Tx >> agi_extension: 2017 <SIP/2018-000051cd>AGI Tx >> agi_priority: 3 <SIP/2018-000051cd>AGI Tx >> agi_enhanced: 0.0 <SIP/2018-000051cd>AGI Tx >> agi_accountcode: 2018 <SIP/2018-000051cd>AGI Tx >> agi_threadid: 139844844660480 <SIP/2018-000051cd>AGI Tx >> agi_arg_1: en-EN <SIP/2018-000051cd>AGI Tx >> <SIP/2018-000051cd>AGI Rx << SET VARIABLE "utterance" "-1" <SIP/2018-000051cd>AGI Tx >> 200 result=1 <SIP/2018-000051cd>AGI Rx << SET VARIABLE "confidence" "-1" <SIP/2018-000051cd>AGI Tx >> 200 result=1 -- <SIP/2018-000051cd>AGI Script speech-recog.agi completed, returning 0
I wounder what i am missing, any dependency? The API is defiantly reading. so whats going on here?
When i did a curl https://speech.googleapis.com/v1beta1/speech:syncrecognize?key=XXXXXXX -X POST -d '{helo}' I got