Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Voice calls in Django/Python

There's a server for an app written in Django. There's a need to add Voice Calls feature to the app. The calls will be only between app users initially and over the internet, so I would guess there is no need for a service like Twillio.

How to do it? Is there an example of such a Django app? Should I combine the Django server with a Twisted server?

like image 738
Teodor Scorpan Avatar asked Sep 30 '22 19:09

Teodor Scorpan


2 Answers

I haven't tested it myself, but here is a simple example of a voice chat implemented in python using the pyaudio module.

Regarding your comment about Twisted, I believe you'll have to combine Django with an asynchronous web framework (Twisted, Tornado, etc...) in order to make the voice chat portion of your solution work as expected.

Good luck!

like image 169
Lucas Infante Avatar answered Oct 25 '22 22:10

Lucas Infante


Could you use a socket service like pubnub and build your chat app on the front end? This like might be of use to you. http://webrtc.co/

like image 20
myleftball Avatar answered Oct 25 '22 22:10

myleftball