nadirhamid / asterisk-audiofork

Stream Asterisk audio over Websockets
GNU General Public License v2.0
147 stars 55 forks source link

Send audio back ? #27

Open lucky-ali opened 9 months ago

lucky-ali commented 9 months ago

Hello will this audio me to the follow

ASTERISK -> AUDIO STREAM -> WS APP SERVER (speech to text) -> WS Client (text to speech) -> Audio Stream -> Asterisk

Basically being able to have a bi-directional call, without using google API.

nadirhamid commented 7 months ago

Hello @lucky-ali,

Unfortantely this is not possible with the current code, but it can be implemented. I have created a demo branch with functionality like this. You can view it here:

https://github.com/nadirhamid/asterisk-audiofork/tree/send-bidirectional-streams

I have yet to document it however. If you need this immediately I suggest you look into the following module: https://github.com/CyCoreSystems/audiosocket

If you have any other questions or need more info let me know.

jmordica commented 7 months ago

+1 for this! :)

Willing to help test.

lucky-ali commented 3 months ago

i have tried to run it but i am unable to get it running, if you can guide me to some sort of documentation on the setup or a demo code i would appreciate it.