Go to file
2020-08-27 15:31:31 -05:00
.github/workflows Fix cut-and-paste error on iOS release action. 2020-08-21 11:16:18 -05:00
.vscode Add VSCode build task. 2020-06-18 15:58:02 -05:00
gradle/wrapper Switch to Gradle for builds. 2020-08-18 10:28:53 -05:00
libs Switch to Gradle for builds. 2020-08-18 10:28:53 -05:00
src Changes necessary to get working on Android. 2020-08-18 17:23:05 -05:00
.gitattributes Switch to Gradle for builds. 2020-08-18 10:28:53 -05:00
.gitignore Switch to Gradle for builds. 2020-08-18 10:28:53 -05:00
build.gradle Changes necessary to get working on Android. 2020-08-18 17:23:05 -05:00
Cargo.toml Add staticlib crate type for iOS. 2020-08-18 15:54:58 -05:00
godot-tts.gdap Changes necessary to get working on Android. 2020-08-18 17:23:05 -05:00
godot-tts.gdnlib Add dependencies to debug gdnlib so debug exports work. 2020-08-25 12:41:04 -05:00
godot-tts.gdnlib.release Add iOS libraries to Godot configuration. 2020-08-18 16:51:49 -05:00
godot-tts.gdns Fix another name inconsistency. 2019-09-13 10:03:13 -05:00
gradlew Switch to Gradle for builds. 2020-08-18 10:28:53 -05:00
gradlew.bat Switch to Gradle for builds. 2020-08-18 10:28:53 -05:00
LICENSE Add MIT license. 2018-06-13 12:19:07 +00:00
README.md Update README. 2020-06-14 20:19:50 -05:00
TTS.gd Use actual normal_rate getter so we don't repeat ourselves. 2020-08-27 15:31:31 -05:00

Godot TTS

This addon was primarily developed for the Godot Accessibility addon, but should work well in other contexts where a Godot game might require text-to-speech.

Supported Platforms

Text-to-speech is complicated, and some features may not work everywhere. Most optional features have an associated boolean property used to determine if the feature is available. Further, while I do attempt to ensure that this addon works as well as possible on all platforms, there may be bugs, and pull requests are welcome. Known supported platforms include:

Features

Note that not all features are supported on all synthesizers. Any feature that may not be supported has a boolean property that can be checked to determine whether it works on the current platform.

  • Speaking text, with interruption support on most platforms
  • Stopping speech in progress
  • Getting and setting speech rate in both native synthesizer units and percentages
  • Detecting whether a screen reader is active
  • Determining whether the synthesizer is speaking, and sending a signal on completion

API

The public-facing API is contained entirely within TTS.GD.

Download

Download the latest release.

Notes on Universal Windows Platform

Godot's UWP export is currently broken. In order to use this addon in a UWP game, do the following:

  1. Export to UWP.
  2. Extract the newly-created .appx file with makeappx unpack.
  3. If you've extracted the .appx file to a directory like _mygame_, copy addons\godot-tts\target\release\godot_tts.dll to mygame\game\addons\godot-tts\target\release\godot_tts.dll, creating the directory if it doesn't exist.
  4. Repack the appx using makeappx.

It should then be ready to sign and install. Hopefully Godot's UWP export will eventually copy GDNative DLLs correctly so this procedure isn't necessary.