This content originally appeared on DEV Community and was authored by abhigoyani
Overview of My Submission
Some times we can not answer calls and can't respond to them on call for some time, so instead of rejecting their call and telling them to text, we get thier messege and convert it to text and whatsapp it to our own number.
Submission Category:
Wacky Wildcards
Link to Code on GitHub
abhigoyani / callToWhatsapp
Uses deepgram to convert incoming calls into text and send it to the whatsapp.
callToWhatsapp
Overview of My Submission
Some times we can not answer calls and can't respond to them on call for some time, so instead of rejecting their call and telling them to text, we get thier messege and convert it to text and whatsapp it to our own number.
Prerequisites
- python
- DeepGram API key
- Twilio Python Helper Library
- Twilio WhatsApp sandbox
- Subscribed to twilio whatsapp sandbox from your number
Installation
Export Following environment variables
- RECORD_STS_WEBHOOK
- TWILIO_ACCOUNT_SID
- RECORD_STS_WEBHOOK (webhook URL for recording status updates)
- DEEPGRAM_API_KEY
- TWILIO_WHATSAPP_NO
- PERSONAL_WHATSAPP_NO
Now run the flask app which is main.py
Now whenever someone calls your Twilio number Twilio will record the call and once the call ends our flask application will receive a webhook call. Once our application receives a webhook called DeepGram will take the recording and returns the Text of that recording which will be sent to our number via WhatsApp.
Prerequisites
- python
- DeepGram API key
- Twilio Python Helper Library
- Twilio WhatsApp sandbox
- Subscribed to twilio whatsapp sandbox from your number
Installation
Export Following environment variables
- RECORD_STS_WEBHOOK
- TWILIO_ACCOUNT_SID
- RECORD_STS_WEBHOOK (webhook URL for recording status updates)
- DEEPGRAM_API_KEY
- TWILIO_WHATSAPP_NO
- PERSONAL_WHATSAPP_NO
Now run the flask app which is main.py
Now whenever someone calls your Twilio number Twilio will record the call and once the call ends our flask application will receive a webhook call.
Once our application receives a webhook called DeepGram will take the recording and returns the Text of that recording which will be sent to our number via WhatsApp.
This content originally appeared on DEV Community and was authored by abhigoyani
abhigoyani | Sciencx (2022-04-11T09:27:36+00:00) Call to Whatsapp message. Retrieved from https://www.scien.cx/2022/04/11/call-to-whatsapp-message/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.