Return text-to-speech for use in games #10232
kveberg
started this conversation in
Engine Core
Replies: 1 comment
-
Text-to-speech is already implemented in 4.0 and later, but it uses the OS' accessibility APIs. These are not designed to provide a consistent result across platforms, as different platforms have different speech backends (and different voices installed). The OS itself is playing back the text-to-speech audio, so there is no way Godot could possibly retrieve the output of TTS. This allows TTS to work even if Godot can't play audio for some reason (e.g. if it's using the Dummy audio driver). It also allows adjusting the TTS volume independently from the game volume in the system audio mixer. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Calls to TTS return the audio so it can be passed to an audio bus in Godot so it can be further processed for better integration in the overall audio and feel of games. Your proverbial "AI" voice in game, for instance, can be achieved with a little processing (e.g. reverb) to greatly enhance immersion.
Beta Was this translation helpful? Give feedback.
All reactions