This project uses Twilio Media Streams and Amazon Transcribe. It will convert your speech to text and repeat what you said back to you in the voice of Cedric, your favorite robot, star of TwilioQuest.
Install the Twilio CLI
Locate your Twilio number
twilio phone-numbers:list
Set your incoming voice Webhook to your Glitch URL
twilio phone-numbers:update +15552223344 --voice-url="https://your-glitch-project.glitch.me/twiml"
Copy the .env.example
keys and configure the values in your .env
file.
Install your dependencies
npm install
Configure your environment
npx configure-env
Locate your existing phone number
twilio phone-numbers:list
Set up an ngrok tunnel to your local server
twilio phone-numbers:update +15552223344 --voice-url="https://localhost:3000/twiml"
- More Twilio Media Streams examples
<Stream>
Documenation- Amazon Transcribe using Websockets Documentation
- Amazon Transcribe Websockets Sample Application
- No warranty expressed or implied. Software is as is. Diggity.
- MIT License
- Lovingly crafted by Twilio Developer Education.