Looking for a text to speech program (that creates an audio file) where it either sounds robotic or can be configured to do so

Godot Version

Godot 3

Question

When I simply search "text to speech" I get a fair amount of options, but so far none of them allow for a robotic-sounding voice (such as older toys and games would have, or Sci-Fi movies) yet there are still robot sounding voices in modern works. I can't imagine that 100% of movies and games with robotic voices *always* custom roll their own program from scratch.

It doesn’t have to be free if it’s a one-time purchase.

If it created an audio file (or had that option after previewing it with the settings I made) I could just play that file when the event happened in-game, rather than have the voice to speech “engine” be part of the game.

Godot already has that functionality built in: Text to speech — Godot Engine (stable) documentation in English

From the docs:

# One-time steps.
# Pick a voice. Here, we arbitrarily pick the first English voice.
var voices = DisplayServer.tts_get_voices_for_language("en")
var voice_id = voices[0]

# Say "Hello, world!".
DisplayServer.tts_speak("Hello, world!", voice_id)

# Say a longer sentence, and then interrupt it.
# Note that this method is asynchronous: execution proceeds to the next line immediately,
# before the voice finishes speaking.
var long_message = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur"
DisplayServer.tts_speak(long_message, voice_id)

# Immediately stop the current text mid-sentence and say goodbye instead.
DisplayServer.tts_stop()
DisplayServer.tts_speak("Goodbye!", voice_id)
3 Likes

@legotekfan486 if that solved your problem, please mark it as the solution for people coming after you.