OpenAI Text-to-Speech: Complete Guide with Zapier Integration & Voice Demos β
Let's build with Zapier and AI (100+ videos)π
2023-12-24
Transcript β
[00:00] so there is a really cool feature that we discovered in one of my earlier tutorials this week that allows us to create text to voice now I always knew this was part of the open a API documentation but I didn't realize how easily it integrates with zapier So today we're actually going to learn how to create this kind of feature and just so you can hear what it sounds like here we go this is my voice hello let's figure out how to do this today that's super creepy let's jump in welcome back to cor AI y'all so we're going to be checking out a new little action here that I think is pretty cool use case wise let
[00:32] me know in the comments of possible use cases you can think of in the comments there's probably a ton but for now we're just going to learn how to Simply do it so if we come over to load more there is one called convert text to speech this is using wh Whispers API here let's jump over to zaper okay so in zapier I'm going to go and create a new zap here and the purpose of this is just to Showcase like the very limited variables we have to input in order to achieve this and how simple it is so I can go ahead and ignore that I'm going to go ahead and just start off by doing a gbt block because I'm going to have it create a little story for us for this
[01:03] specific use case we're going to do this we're going to do conversation that conversation with assistant let's do conversation here continue continue we're going to say give me a four sentence uh holiday story because it is about to be Christmas tomorrow give me a four sentence holiday story and I'm going to go ahead and complete this step real quick going to up the model to gbt 4 so it gets a little a little bit more creative for us member key doesn't only matter we're going to continue here and
[01:34] test this step we should just get a four sentence Christmas story real quick or holiday story okay so we got our holiday store here I'm going to zoom in because it is a little bit not that good all right here we go once upon a time on a snowy Christmas Eve a kind-hearted little boy named Sammy all right we're not going to spoil it we're going to jump into this new future so we're going to use open AI as I've said before in the past you want to use open AI block for specifically accessing other models like d gbt like lower models and whisper in this context you want to use Chad gbt
[02:04] block for using Chad gbt models so they kind of separated the two in zier I like how they do that because of the fact that a lot of times you kind of use the different models in different use cases more likely you're going to use the chat DBT block a lot and rarely use the open AI block but for now we can go ahead and proceed from here so we're going to say convert text to speech and continue continue and the model we're going to choose is going to be HD so as you probably saw in the beginning of this video basically there's two major differences the te tts1 is just for the faster to to optimize for Speed and then
[02:37] the HD is for Quality now let's go ahead and hear the highest quality we can possibly get with artificial intelligence as of now as I think that'd be super cool so going to proceed from here oh that was loud sorry for that I was in a conversation with Amazon on the side holiday season okay so I'm going to go ahead and get the output here and here we go so we got that we can choose a bunch of different voices here I'll I'll be honest with you I've only used a couple of them but as you see we got you know an option for voice options here we actually can hear them all right cool let's actually listen to some of these so we got alloy the sun rises in the
[03:08] East and sets in the west okay keep note of these we're gonna I'm I'm see I'm ask youall which one do you think is best in the Heart of the City there is a large Park where people go to the library is a quiet and peaceful place where people go to read the train chugged along the tracks carrying passengers to their destinations in the kitchen the aroma of freshly baked the beach was a popular spot on a hot summer day I don't know something about this one the rhythmic sound of the
[03:39] wheels on the rails was soothing I think this one sounds the best something about that one sounds really good okay I'm going to go with that one I think it's pronounced ANS I might have completely butchered that I'm proceed with that though all right then we going to choose our format uh I'm G To Go MP3 I am not an audio guy and then we got our speed as well which is interesting I'm going to keep this at 1.1 or 1.0 continue going test this step and we should hear an entire Christmas Story here written by Ai and talked by
[04:12] AI all right so I'm going to go and copy the link open a new tab here that basically downloads it okay so now that I've downloaded it we can go ahead and listen to it so let's go and listen to it and then I'm going to go and talk about possible use cases I can think of in a more pragmatic use case boom Once Upon a Time on a snowy Christmas Eve a kind hearted little boy named Sammy decided to leave an extra present under the large festive tree in the Town Square he hoped it would be found by old Jim a homeless man he often saw huddled in the park upon discovering the warm
[04:43] blanket and food tucked inside the gift old Jim's face lit up with grateful tears from that magical Christmas forward the whole town started leaving a gift under the tree creating a heartwarming tradition that filled every holiday season with love and compassion what the all right so two things first thing is that you could hear it breathe like it had breaths that was crazy if you didn't hear that listen
[05:15] back there was breaths so it sounded more natural that was really good y'all wait once upon a time on a snowy Christmas Eve a kindhearted I can't tell if my I feel like I'm being biased right now because I knew I know it's artificial intelligence where my brain's like no you could probably tell if you were talking to someone that was a robot over a phone I don't know this is interesting y'all this is
[05:46] very interesting I I'm I'm I'm trying to get my head around it this is very interesting so now we have the ability to automate the uh ability for Texas speech that's insane possible use cases that come to my head right off the bat I think the first use case that I think is the most obvious is using an integration like twio and with an integration like twio we're going to be able to leave voicemails for potential leads um automatically now of Texas speech which is interesting almost like hey this is XYZ from XYZ Corp um just leaving your voicemail give you heads up that we were
[06:17] expecting to have this meeting at X time and you could leave it in these kind of voices now you could uh you could possibly disclaim whether that was a robot or not that's up to your discretion although I don't know maybe the UK is a little more strict I know the UK and EU is pretty strict when it comes to this kind of stuff but that's one possible use case although I'm really curious let me know what you guys think let me know what you guys think when it comes to this cuz there's something here I feel like there's something here when it comes to being able to automatically do text to speech the only thing that comes into my head automatically is obviously a twio if you
[06:49] don't know what twio is it's like an SMS phone marketing software that's the only one that comes right up to my mind right away that being said we just got told a Christmas story or a holiday Story by a robot it's Christmas Eve here y'all so without further Ado make sure to leave a like if you learned something happy holidays yall hope you have a great time wherever you're going these holidays and I'll see you in the next video thanks for tuning in and yes surprise I'm an AI Avatar make sure to explore more here at
[07:21] Corbin AI where we demystify AI for your personal and business life until next time