lbolanos / ast-gspeech Goto Github PK
View Code? Open in Web Editor NEWAsterisk Streaming Connection with google speech API
Asterisk Streaming Connection with google speech API
Hola actualmente al usar el script me da el siguiente error:
06-27 07:46:59 INFO BaseAgiRecoScript - No DATA elapsed:210 msec:1687866419979
06-27 07:47:00 INFO BaseAgiRecoScript - No DATA elapsed:407 msec:1687866420176
06-27 07:47:00 INFO BaseAgiRecoScript - No DATA elapsed:605 msec:1687866420374
06-27 07:47:00 ERROR BaseAgiRecoScript - recognize failed: {0}Status{code=INVALID_ARGUMENT, description=RecognitionAudio not set., cause=null}
06-27 07:47:00 INFO BaseAgiRecoScript - No DATA elapsed:803 msec:1687866420572
06-27 07:47:00 INFO BaseAgiRecoScript - Sent 0 bytes from audio file:
Me podrias ayudar por favor ? gracias!
Hi,
I was using your code to test google speech API with streaming but it fails with following error:
recognize failed: {0}Status{code=INVALID_ARGUMENT, description=No audio content., cause=null}
Is there anything where you can help me?
Thank You!!
Hi,
I got this result while trying to run the program:
-- Executing [999@B2B:2] EAGI("PJSIP/Cellcom_SIP_Trunk-000000b3", "./ast-gspeech/bin/run.sh") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/./ast-gspeech/bin/run.sh
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Tx >> agi_request: ./ast-gspeech/bin/run.sh
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Tx >> agi_channel: PJSIP/Cellcom_SIP_Trunk-000000b3
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Tx >> agi_language: en
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Tx >> agi_type: PJSIP
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Tx >> agi_uniqueid: 1516829313.179
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Tx >> agi_version: 13.14.0
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Tx >> agi_callerid: 547779947
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Tx >> agi_calleridname: 547779947
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Tx >> agi_callingpres: 0
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Tx >> agi_callingani2: 0
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Tx >> agi_callington: 0
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Tx >> agi_callingtns: 0
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Tx >> agi_dnid: unknown
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Tx >> agi_rdnis: 547779947
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Tx >> agi_context: B2B
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Tx >> agi_extension: 999
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Tx >> agi_priority: 2
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Tx >> agi_enhanced: 1.0
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Tx >> agi_accountcode:
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Tx >> agi_threadid: 140254171821824
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Tx >>
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Rx << SET VARIABLE "AJ_AGISTATUS" "FAILED"
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Tx >> 200 result=1
-- <PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Script ./ast-gspeech/bin/run.sh completed, returning 0
how can I debug it and find the cause of the failure?
the /log/speech.log file contains:
01-24 23:46:29 ERROR EAgiConnectionHandler - Unexpected Exception while handling request
java.lang.NullPointerException
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:305)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at org.asteriskjava.fastagi.AbstractMappingStrategy.createAgiScriptInstance(AbstractMappingStrategy.java:117)
at org.asteriskjava.fastagi.ClassNameMappingStrategy.determineScript(ClassNameMappingStrategy.java:96)
at org.asteriskjava.fastagi.CompositeMappingStrategy.determineScript(CompositeMappingStrategy.java:114)
at com.astgspeech.core.CoreAgiConnectionHandler.run(CoreAgiConnectionHandler.java:82)
at com.astgspeech.core.DefaultEAgiServer.startup(DefaultEAgiServer.java:234)
at com.astgspeech.core.DefaultEAgiServer.main(DefaultEAgiServer.java:296)
Thanks,
Guy
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.