DEV Community

Cover image for How To Create Text-to-Speech with Hermes Agent & Kitten TTS
Mahesh
Mahesh

Posted on

How To Create Text-to-Speech with Hermes Agent & Kitten TTS

Hermes agent is very handy when it comes to getting your everyday ai tasks done. A lot of people create Youtube videos, podcast and also variety of AI based content. In that case they are now using the AI based voice generation.

A lot of AI voice generation online is premium and in order to create the ai voice you can use the open source libraries. One such library is Kitten TTS.

Hermes agent can work with Kitten TTS for producing your text into speech. I decided to use one sample text file in the folder and then gave Hermes agent to turn that text into the AI speech.

This below video is exact process on how I used the Kitten TTS to create the sample text file into the audio.

So what was my process to do this?

Open the command line and go to Hermes tools section. And there you would find a way to select "Kitten TTS". And here you would be able to instruct the Hermes agent on usage of this model.

You can alternatively use the GitHub repo link to the Hermes agent. By giving repo you would train the Hermes agent better. You would let that agent understand how to build the flow for the building text to speech output easily.

In grand scheme of things, making any text into speech becomes easier once you have a flow with the Hermes agent. I would suggest you create a two speaker convo script with any AI model and then feed that to hermes agent in a text file. And then use Kitten TTS with native speaker voice for conversion.

If you use this flow do let me know :)

Top comments (0)