-
Create a Exotel App [Manage -> App Bazaar]
-
Assign a phone number to the app [Manage -> Exo Phones]
-
Check call recording and call logs [Calls -> Inbox]
-
Voice Applets setup video Link
-
Working with the Stream and Voicebot Applet Doc
-
Voice Bot FAQ Link
-
Create a virtual environment
python3 -m venv .venv
-
Activate the virtual environment
source .venv/bin/activate
-
Install the required packages
pip install -r requirements.txt
-
Run server
python manage.py runserver
-
Start ngrok
ngrok http 8000
-
Use ngrok URL in Exotel Applet configuration
-
Note: we have to open ngrok url in browser for first time and click the verify button.
-
Now call to your exotel number and it will connect to the voice applet.
-
Sample server logs
-
Voice Streaming Sample Repo Link
-
We can use PyAudio library for audio operations.
-
We can use postman to test our websocket endpoint
-
Send media chunks back to exotel
-
Create an audio file received chunks from exotel