How to add voice to any chatbot/AI.
How to add voice to any chatbot/AI.
Yes your read the title correct this will work with any chatbot as long as it has an output statement. If your don’t have a chatbot already set up then go check out my “ How to make a AI/chatbot using TensorFlow” article.
Firstly lets get started with the imports:-medium.com
To be honest its actually really easy to add a voice to your chatbot as long as you know basic python its just importing and implimenting.
So, lets get started
So first the imports:-
Now its as easy as making the function and making our language of choice english and just making the string to speech and saving the file.
Now thats finished now just import the file to where you wand and use the speak to make your AI speak its as easy as that!!
Lets see the results on my AI called DEW:
so, just two lines of code on line number 10 and line number 111 has given our ai a voice.
Have fun coding 😁.
A follow is appriciated.
More on my GitHub:
You can't perform that action at this time. You signed in with another tab or window. You signed out in another tab or…github.com
For knowing when I post follow my twitter:
Thanks for reading See ya again hehe😁.