![]() The verb converts text to speech that is read back to the caller. ![]() For this tutorial, you’ll be using and exploring TwiML’s and verbs. Twilio's Markup Language (TwiML) is an XML based language that has a set of simple verbs and nouns that allows you tell Twilio what to do with incoming and outgoing calls, SMS and MMS messages. For this tutorial, you will be creating a Functions service that will handle incoming calls to your Twilio number. If you aren’t familiar with the service, Twilio Functions is a serverless Node.js environment that allows you to seamlessly create Twilio applications all through the Twilio Console it's lightweight, scalable and secure. A Twilio phone number - Click here to see how to get your first Twilio number with your trial accountīefore you start building, let’s go over Twilio Functions, TwiML, and OpenAI’s GPT-3 engine and how they’ll be used to create your phone service.A Twilio account - Sign up for free using this link and receive $10 in credit when you upgrade your account!.Here’s what you will need for this tutorial: ![]() This blog will show how to leverage Twilio Voice with OpenAI’s GPT-3 engine to build a phone service to converse with an AI friend the phone service will entirely be built on Twilio Functions. Combining this with speech recognition from Twilio Programmable Voice, I’d be able to freely talk back and forth with Joanna and to ensure our conversation sounds life-like, Joanna’s Neural voice will be used. I can even personalize it to make Joanna sound witty and comedic or even sound like my girlfriend□. Luckily, with OpenAI’s GPT-3 engine I can provide a prompt and generate text that is indistinguishable from human text. But how can I enable Joanna to freely chat like a human? I could call up a friend to pass time, but I wanted to experiment by talking to a robot like Joanna and observing if it can freely converse like a human. Whether it’s walking home from the subway or waiting in line at the store I always find myself needing to kill time. Since it’s also National Anti-Boredom Month (July), I started focusing on ways to tackle boredom and pass time. ![]() This solution then made me wonder what other fun ways Joanna could help me out. This solution allowed me to text my “friend” Joanna – an Amazon Polly voice – a key phrase which would trigger Joanna to call me and respond as if there was an emergency using a human-like synthesized speech. As the engineer I am, I decided it’d be fun to build and publish a quick solution to this using my toolbelt here at Twilio: How to Escape Pesky Situations using Twilio Functions and TwiML Bins. I always used to find myself getting into unwanted social situations that I could never get out of. ![]()
0 Comments
Leave a Reply. |