Closed vcidst closed 2 years ago
Hi, I'm currently working on a similar proof of concept and were are running into the same problem. We've run our node server on the same server that Asterisk is running. I've connected successfully to the node server using wscat but I see no incoming connection when using the example dialplan. When I make a call we can see that Asterisk executes the SpeechCreate() and SpeechStart() but after that, the call exits with non-zero. I've been looking for some more info online but since its new functionality I'm not having much luck :(
Any ideas on what I might be doing wrong?
The Asterisk side code for this has yet to be reviewed, merged, and released. If you are using it with a release version then it will not work.
The Asterisk side code for this has yet to be reviewed, merged, and released. If you are using it with a release version then it will not work.
Thanks for the quick reply. If I would like to try this new code out, what/which version should I download?
The code is up for review at https://gerrit.asterisk.org/c/asterisk/+/17330 - you would need to download the patch and apply it to the Asterisk master branch.
Almost the same as the guys before , i'm on branch 18.12.1 , Testing the example code , when try to run the 550 example i get :
-- Executing [550@local-users:4] SpeechCreate("PJSIP/1107-00000001", "my-speech-to-text") in new stack [May 30 15:25:35] ERROR[4534]: res_aeap/aeap.c:204 raise_msg_handler: AEAP (0x7f8960011010): Cannot read property 'streamingRecognize' of undefined
What is the streamingRecognize ?
And on the node side i get :
Server on port '9099': client connected message: {"request":"setup","version":"0.1.0","codecs":[{"name":"ulaw"}],"params":{},"id":"3f4c0927-102c-4109-b04e-91299fd87938"}
--UPDATE, i was using node 12.xx and i believe this was related to this , on 18.xx it runs without any problem , regarding the library .
What is the streamingRecognize ?
It's part of the Google speech recognition API, but sounds like updating the node version fixed things.
The Asterisk side code has been merged. As well, it has been released and is now available in Asterisk 18.12.0+ and 19.4.0+.
I have been trying to get this demo to function but I have the same thing happening as reported above. SpeechStart exits with non zero. I am using Asterisk 18.14. and node version 20.10.0. The sample node app seems to function properly waiting for a connection. I have verified my Google credentials. I have a second system running Asterisk 20.4.0 and node 20.10.0 also. Same thing. Any suggestions would be greatly appreciated.
Hi, I'm looking for options to stream asterisk audio to my STT engine and tried to reproduce the example in your readme but faced certain errors. Can you please give me pointers how should I debug and get more information about the cause of error?
I'm running the node application locally and exposed it with an ngrok tunnel
ngrok http 9099
,I tested the websocket connection by trying to connect to
ws://127.0.0.1:9099
ws://localhost:9099
orws://<ngrok_url>
and was able to make successful websocket connection.On the asterisk server, my configuration files look like the following,
aeap.conf
extensions.conf