zaf / asterisk-speech-recog

Speech recognition script for Asterisk that uses google's speech engine.
GNU General Public License v2.0
249 stars 132 forks source link

speech-recog.agi, Some unexpected error. Just says -1 #49

Closed PaulJeyasinghph closed 6 years ago

PaulJeyasinghph commented 6 years ago

Here is the full output of AGI debug. Asterisk 13.17.1, Centos 7.3 – it just says -1. Did a packet capture to see, whether any packet has been send to cloud none.

– 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