ElevenLabs API in Godot - high quality Text-to-Speech (TTS) Plugin

I created a simple Plugin for myself to make it easier to call ElevenLabs API and thought I might polish it up a little and share it with the community.

If you ever needed a high quality Text-to-Speech (TTS) for your project or just for prototyping - this Plugin is very simple to set up and start running within seconds.

You need your own API key that you can create for free (for non-commercial use) at ElevenLabs.

Currently, the main use-case is pre-generating single audio files in the Editor, but I have plans to expand the features list a little in the near future.

Any feedback is welcome!

5 Likes

Cool. Someone was asking for a TTS solution the other day, I sent them to the built-in one.

2 Likes

Ah, the built-in TTS is awful, unless you’re going for that sweet Stephen Hawking vibe.

2 Likes

Will it accept the international phonetic alphabet for input?

You can check it directly on www.elevenlabs.io website.

If you just paste the text in the IPA format, it will try to read it as if it was written in regular English, so the result is gibberish.
But you shouldn’t need to do that, the pronunciation of most languages is pretty spot on. Did you try it out already and found some issues with the pronunciation?

If you want to, you can adjust the pronunciation of some words with pronunciation dictionary, here’s documentation about it. But I never tried it, or even had a need to do that.

He has his own language he made for his game.

Oh, interesting. In that case it should be doable to work something out with the pronunciation dictionaries and a custom voice creation. I’d be interested to see if you can get it working, @weaselboy2.

Actually the languages, plural, are from the original Traveller RPG back in the 80’s. It’s going to be a while before I start coding anything for it though.

1 Like

I remember that game. You using the rules too? The character creation was intense.

I still have all the rules and may code up a character generator. I have a lot of RPGs to do that for though and may code it on Hero Lab which is designed for RPG character creation.

1 Like

The Plugin is enhanced with 2 features:

  1. Multi text file handling - allows queuing multiple requests with a simple *.json file (check the documentation about the proper syntax).
  2. Credit usage information - retrieves latest information about credit usage, also allows to easily test API Key and the connection without using any credits.

2 Likes