Skip to content
Kitbay
SkillOfficialPublic Beta

twilio-voice-conversation-relay

MITUpdated on Nov 11, 202642GitHub stars

A Twilio skill for building voice agents on phone calls with ConversationRelay, where Twilio handles speech recognition and text-to-speech and your server exchanges text with Twilio over a WebSocket.

What the skill teaches

A Twilio skill for building voice agents on phone calls with ConversationRelay, where Twilio handles speech recognition and text-to-speech and your server exchanges text with Twilio over a WebSocket. It covers the TwiML that connects a call to your WebSocket, each message type sent in either direction, streaming a language model's reply back token by token so the caller hears it quickly, and choosing voice providers and voices. Quickstart code is given in Python and Node.js. It suits voice bots, replacements for keypad menus and live assistants on calls.

Capabilities

  • Connect a Twilio call to a WebSocket with ConversationRelay
  • Handle ConversationRelay WebSocket messages
  • Stream language model replies into a call
  • Configure speech recognition and text-to-speech voices