Comments (4)
The debug output of the AGI script was not captured. Keep in mind that AGI debug is displayed in the console that asterisk was originally started and not on consoles attached later via asterisk -r.
Try get the debug from there and maybe try running the script manually from the cli just to make sure that you have all the perl modules and the script actually runs.
from asterisk-speech-recog.
This is my Output when I called on Extensions 999.
I have used googletranslate.agi and speech-recog.agi file.
Both are working.
Both AGi file has debug value = 1
Debug mode on and below mentioned my output.
This is my extensions.conf code.
exten => 999,1,Playback(1.wav) ;
same => n,Goto(stmukesivr,s,1)
[stmukesivr]
exten => s,1,Answer()
exten => s,n,WaitExten()
exten => s,n,agi(googletranslate.agi,en)
;exten => 3,1,Background(afterhours)
;exten => 2,1,Background(afterhours)
exten => 1,1,Background(dayhours)
same => n,agi(googletranslate.agi,"Please say YES or NO",en)
same => n,agi(speech-recog.agi,en-US,-1)
same => n,Verbose(1,Script returned: ${status} , ${id} , ${confidence} , ${utterance})
same => n,GotoIf(
same => n(olddata),Goto(queues,111,1)
same => n(tryagain),GotoIf($["${utterance}" = "no"]?newdata:onemore)
same => n,(newdata),Goto(queues,222,1)
same => n(onemore),GotoIf($["${utterance}" = "menu"]?menu:sayagain)
same => n(menu),Background(welcome)
same => n,Goto(stmukesivr,s,1)
same => n(sayagain),Background(welcome)
;same => n,agi(googletts.agi,en)
CLI Code:
Connected to Asterisk 11.2.1 currently running on patelsa (pid = 19266)
patelsa_CLI> agi set debug on
AGI Debugging Enabled
patelsa_CLI> core set verbose 11
Set remote console verbosity to 11
== Using SIP RTP CoS mark 5
-- Executing [999@LocalSets:1] Playback("SIP/0000FFFFABCD-00000000", "1.wav") in new stack
[2014-11-12 01:45:21] WARNING[19292][C-00000000]: file.c:698 ast_openstream_full: File 1.wav does not exist in any format
[2014-11-12 01:45:21] WARNING[19292][C-00000000]: file.c:1014 ast_streamfile: Unable to open 1.wav (format (ulaw)): No such file or directory
[2014-11-12 01:45:21] WARNING[19292][C-00000000]: app_playback.c:480 playback_exec: ast_streamfile failed on SIP/0000FFFFABCD-00000000 for 1.wav
-- Executing [999@LocalSets:2] Goto("SIP/0000FFFFABCD-00000000", "stmukesivr,s,1") in new stack
-- Goto (stmukesivr,s,1)
-- Executing [s@stmukesivr:1] Answer("SIP/0000FFFFABCD-00000000", "") in new stack
-- Executing [s@stmukesivr:2] WaitExten("SIP/0000FFFFABCD-00000000", "") in new stack
== CDR updated on SIP/0000FFFFABCD-00000000
-- Executing [1@stmukesivr:1] BackGround("SIP/0000FFFFABCD-00000000", "dayhours") in new stack
-- <SIP/0000FFFFABCD-00000000> Playing 'dayhours.slin' (language 'en')
-- Executing [1@stmukesivr:2] AGI("SIP/0000FFFFABCD-00000000", "googletranslate.agi,"Please say YES or NO",en") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/googletranslate.agi
<SIP/0000FFFFABCD-00000000>AGI Tx >> agi_request: googletranslate.agi
<SIP/0000FFFFABCD-00000000>AGI Tx >> agi_channel: SIP/0000FFFFABCD-00000000
<SIP/0000FFFFABCD-00000000>AGI Tx >> agi_language: en
<SIP/0000FFFFABCD-00000000>AGI Tx >> agi_type: SIP
<SIP/0000FFFFABCD-00000000>AGI Tx >> agi_uniqueid: 1415774720.0
<SIP/0000FFFFABCD-00000000>AGI Tx >> agi_version: 11.2.1
<SIP/0000FFFFABCD-00000000>AGI Tx >> agi_callerid: 5775
<SIP/0000FFFFABCD-00000000>AGI Tx >> agi_calleridname: SP OFFICE
<SIP/0000FFFFABCD-00000000>AGI Tx >> agi_callingpres: 0
<SIP/0000FFFFABCD-00000000>AGI Tx >> agi_callingani2: 0
<SIP/0000FFFFABCD-00000000>AGI Tx >> agi_callington: 0
<SIP/0000FFFFABCD-00000000>AGI Tx >> agi_callingtns: 0
<SIP/0000FFFFABCD-00000000>AGI Tx >> agi_dnid: 999
<SIP/0000FFFFABCD-00000000>AGI Tx >> agi_rdnis: unknown
<SIP/0000FFFFABCD-00000000>AGI Tx >> agi_context: stmukesivr
<SIP/0000FFFFABCD-00000000>AGI Tx >> agi_extension: 1
<SIP/0000FFFFABCD-00000000>AGI Tx >> agi_priority: 2
<SIP/0000FFFFABCD-00000000>AGI Tx >> agi_enhanced: 0.0
<SIP/0000FFFFABCD-00000000>AGI Tx >> agi_accountcode:
<SIP/0000FFFFABCD-00000000>AGI Tx >> agi_threadid: 140476973975296
<SIP/0000FFFFABCD-00000000>AGI Tx >> agi_arg_1: Please say YES or NO
<SIP/0000FFFFABCD-00000000>AGI Tx >> agi_arg_2: en
<SIP/0000FFFFABCD-00000000>AGI Tx >>
<SIP/0000FFFFABCD-00000000>AGI Rx << SET VARIABLE "gtranslation" "-1"
<SIP/0000FFFFABCD-00000000>AGI Tx >> 200 result=1
<SIP/0000FFFFABCD-00000000>AGI Rx << SET VARIABLE "glang" "-1"
<SIP/0000FFFFABCD-00000000>AGI Tx >> 200 result=1
-- <SIP/0000FFFFABCD-00000000>AGI Script googletranslate.agi completed, returning 0
-- Executing [1@stmukesivr:3] AGI("SIP/0000FFFFABCD-00000000", "speech-recog.agi,en-US,-1") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/speech-recog.agi
<SIP/0000FFFFABCD-00000000>AGI Tx >> agi_request: speech-recog.agi
<SIP/0000FFFFABCD-00000000>AGI Tx >> agi_channel: SIP/0000FFFFABCD-00000000
<SIP/0000FFFFABCD-00000000>AGI Tx >> agi_language: en
<SIP/0000FFFFABCD-00000000>AGI Tx >> agi_type: SIP
<SIP/0000FFFFABCD-00000000>AGI Tx >> agi_uniqueid: 1415774720.0
<SIP/0000FFFFABCD-00000000>AGI Tx >> agi_version: 11.2.1
<SIP/0000FFFFABCD-00000000>AGI Tx >> agi_callerid: 5775
<SIP/0000FFFFABCD-00000000>AGI Tx >> agi_calleridname: SP OFFICE
<SIP/0000FFFFABCD-00000000>AGI Tx >> agi_callingpres: 0
<SIP/0000FFFFABCD-00000000>AGI Tx >> agi_callingani2: 0
<SIP/0000FFFFABCD-00000000>AGI Tx >> agi_callington: 0
<SIP/0000FFFFABCD-00000000>AGI Tx >> agi_callingtns: 0
<SIP/0000FFFFABCD-00000000>AGI Tx >> agi_dnid: 999
<SIP/0000FFFFABCD-00000000>AGI Tx >> agi_rdnis: unknown
<SIP/0000FFFFABCD-00000000>AGI Tx >> agi_context: stmukesivr
<SIP/0000FFFFABCD-00000000>AGI Tx >> agi_extension: 1
<SIP/0000FFFFABCD-00000000>AGI Tx >> agi_priority: 3
<SIP/0000FFFFABCD-00000000>AGI Tx >> agi_enhanced: 0.0
<SIP/0000FFFFABCD-00000000>AGI Tx >> agi_accountcode:
<SIP/0000FFFFABCD-00000000>AGI Tx >> agi_threadid: 140476973975296
<SIP/0000FFFFABCD-00000000>AGI Tx >> agi_arg_1: en-US
<SIP/0000FFFFABCD-00000000>AGI Tx >> agi_arg_2: -1
<SIP/0000FFFFABCD-00000000>AGI Tx >>
<SIP/0000FFFFABCD-00000000>AGI Rx << SET VARIABLE "utterance" "-1"
<SIP/0000FFFFABCD-00000000>AGI Tx >> 200 result=1
<SIP/0000FFFFABCD-00000000>AGI Rx << SET VARIABLE "confidence" "-1"
<SIP/0000FFFFABCD-00000000>AGI Tx >> 200 result=1
<SIP/0000FFFFABCD-00000000>AGI Rx << CHANNEL STATUS
<SIP/0000FFFFABCD-00000000>AGI Tx >> 200 result=6
<SIP/0000FFFFABCD-00000000>AGI Rx << RECORD FILE /tmp/stt_kVj19v sln "#" "-1" BEEP ""
-- <SIP/0000FFFFABCD-00000000> Playing 'beep.ulaw' (language 'en')
-- <SIP/0000FFFFABCD-00000000> Playing 'beep.ulaw' (language 'en')
<SIP/0000FFFFABCD-00000000>AGI Tx >> 200 result=35 (dtmf) endpos=36640
<SIP/0000FFFFABCD-00000000>AGI Rx << VERBOSE "Unable to get recognition data." 3
-- speech-recog.agi,en-US,-1: Unable to get recognition data.
<SIP/0000FFFFABCD-00000000>AGI Tx >> 200 result=1
-- <SIP/0000FFFFABCD-00000000>AGI Script speech-recog.agi completed, returning 0
-- Executing [1@stmukesivr:4] Verbose("SIP/0000FFFFABCD-00000000", "1,Script returned: , , -1 , -1") in new stack
Script returned: , , -1 , -1
-- Executing [1@stmukesivr:5] GotoIf("SIP/0000FFFFABCD-00000000", "0?olddata:tryagain") in new stack
-- Goto (stmukesivr,1,7)
-- Executing [1@stmukesivr:7] GotoIf("SIP/0000FFFFABCD-00000000", "0?newdata:onemore") in new stack
-- Goto (stmukesivr,1,9)
-- Executing [1@stmukesivr:9] GotoIf("SIP/0000FFFFABCD-00000000", "0?menu:sayagain") in new stack
-- Goto (stmukesivr,1,12)
-- Executing [1@stmukesivr:12] BackGround("SIP/0000FFFFABCD-00000000", "welcome") in new stack
-- <SIP/0000FFFFABCD-00000000> Playing 'welcome.slin' (language 'en')
-- Auto fallthrough, channel 'SIP/0000FFFFABCD-00000000' status is 'UNKNOWN'
patelsa*CLI>
from asterisk-speech-recog.
Getting Return -1 value.
"AGI Tx >> 200 result=35 (dtmf) endpos=36640
AGI Rx << VERBOSE "Unable to get recognition data." 3
-- speech-recog.agi,en-US,-1: Unable to get recognition data.
AGI Tx >> 200 result=1
-- AGI Script speech-recog.agi completed, returning 0
-- Executing [1@stmukesivr:4] Verbose("SIP/0000FFFFABCD-00000000", "1,Script returned: , , -1 , -1") in new stack
Script returned: , , -1 , -1"
kindly advise on it.
from asterisk-speech-recog.
As mentioned in another similar post the Unable to get recognition data'' error means that the API request was not successful.
from asterisk-speech-recog.
Related Issues (20)
- some.flac isuue
- Problems whit google API credencials HOT 4
- API is reading but it wont recognize voice. Using cloud Speech HOT 2
- still working up to now? HOT 1
- Unable to get recognition data HOT 3
- Output from Google. HOT 1
- the API is not working, it is not waiting for the voice to be recorded
- variable silence HOT 1
- Sln file availability after recording HOT 4
- Cannot recognize
- speech-recog.agi, Some unexpected error. Just says -1
- Google Streaming ASR HOT 1
- Problem when using $abs_timeout or [rtimeout] HOT 3
- Help with AGI
- Allow caller to interupt previous command and start recognition?
- Exits without any pause for the user to speak HOT 4
- Problems with API usage HOT 1
- store location
- Is this works with IBM Watson
- Is new google api supported? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asterisk-speech-recog.