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…

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.

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:

For knowing when I post follow my twitter:

Thanks for reading See ya again hehe😁.