Skip to content

An example application using Media Streams and Amazon Transcribe

License

Notifications You must be signed in to change notification settings

TwilioDevEd/talkin-cedric-node

Repository files navigation

Learn to code with TwilioQuest

Talkin' Cedric

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.

Installation

Install the Twilio CLI

Glitch

  1. Locate your Twilio number

    twilio phone-numbers:list
  2. Set your incoming voice Webhook to your Glitch URL

    twilio phone-numbers:update +15552223344 --voice-url="https://your-glitch-project.glitch.me/twiml"
  3. Copy the .env.example keys and configure the values in your .env file.

    cp .env.example .env

    See Twilio Account Settings to locate the necessary Twilio environment variables.

Develop locally

  1. Install your dependencies

    npm install
  2. Configure your environment

    npx configure-env
  3. Locate your existing phone number

    twilio phone-numbers:list
  4. Set up an ngrok tunnel to your local server

    twilio phone-numbers:update +15552223344 --voice-url="https://localhost:3000/twiml"

Learn more

Meta

  • No warranty expressed or implied. Software is as is. Diggity.
  • MIT License
  • Lovingly crafted by Twilio Developer Education.