Godot Android Text to Speech plugin for Godot Engine 3.4 or higher

Overview

Godot Android Text to Speech

This is a Android plugin for Godot Engine 3.4 or higher.

This plugin supports:

  • Text to speech in different locale

Setup

  • Configure, install and enable the "Android Custom Template" for your project, just follow the official documentation;
  • go to the release tab, choose a version and download the respective package;
  • extract the package and putGodotTTS.gdap and GodotTTS.x.y.z.release.aar inside the res://android/plugins directory on your Godot project.
  • on the Project -> Export... -> Android -> Options ->
    • Custom Template: check the Use Custom Build
    • Plugins: check the Godot # Godot Tts (this plugin)

API Reference

Methods

# Init TTS engine with language and country (example -> "en", "US")
initTextToSpeech(String lang, String country)

# Is languange can be used in engine, returns constant
isLanguageAvailable(String lang, String country)

# TTS, play text with specified voice
textToSpeech(String text)

# Stop playing voice
stop()

Compiling the Plugin (optional)

If you want to compile the plugin by yourself, it's very easy:

  1. clone this repository;
  2. checkout the desired version;
  3. open godot-text-to-speech directory in Android Studio
  4. don't forget to put godot-lib.release.aar to godot-lib.release directory

If everything goes fine, you'll find the .aar files at godot-text-to-speech/godot-tts/build/outputs/aar/.

Troubleshooting

  • First of all, please make sure you're able to compile the custom build for Android without plugin, this way we can isolate the cause of the issue.

  • Using logcat for Android is the best way to troubleshoot most issues. You can filter Godot only messages with logcat using the command:

adb logcat -s godot

References

Google Developers:

License

MIT license

You might also like...
Sample app that displays a birthday card with text and an image

Birthday Card App Sample app that displays a birthday card with text and an image. Used in the Android Basics with Kotlin course. Pre-requisites Andro

ANTLR is a powerful parser generator for reading, processing, executing, or translating structured text or binary files.

ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files.

Text Recognizer App Using the ML Kit

Features Detects text in images Using the ML Kit Text Recognition API Uses the CameraX to show a viewfinder and display the camera preview Provides a

SmartLens uses Google's ML Kit for Barcode scanning, Face recognition, Text recognition, and Image labeling.
SmartLens uses Google's ML Kit for Barcode scanning, Face recognition, Text recognition, and Image labeling.

SmartLens SmartLens uses Google's ML Kit for Barcode scanning, Face recognition, Text recognition, and Image labeling. 📷 Screen Shots 🔥 Features It

Not so deep text reader inspired by BORIS, written in Kotlin

Barnable Reader Prototype Deep text reader library that generates a semantic model from a short input text. At the moment it is very primitive and is

CutableTextView -  the super lightweight library that helps to you cut long text. ✂️
CutableTextView - the super lightweight library that helps to you cut long text. ✂️

An easy to use CutableTextView when you need to cut a long text. ✂️ ✂️ ✂️ Gradle dependencies { implementation 'com.github.devit951:cutabletextvie

neutriNote: All-in-one preservation of written thoughts, be those text, math (LaTeX), rich markdown, drawings
neutriNote: All-in-one preservation of written thoughts, be those text, math (LaTeX), rich markdown, drawings

Official | FAQ | Documentation | Mastodon | XDA neutriNote (Community Edition) What is neutriNote? In a nutshell, all-in-one preservation of written t

Implement Text Recognition using MLKit in Jetpack Compose using Kotlin
Implement Text Recognition using MLKit in Jetpack Compose using Kotlin

Implement Text Recognition using MLKit in Jetpack Compose using Kotlin. The application is built using Kotlin Programming Language with Jetpack Compose Navigation.

Will export all your words from LingQ to a tab-separated UTF-8 text file, Html, and Anki

LingQWordsExport Will export all your words from LingQ to a tab-separated UTF-8 text file, Html, and Anki. Here you can find a documentation page. Ins

Comments
  • Additional methods and signals

    Additional methods and signals

    I have exposed some more TTS methods and added signals for detecting when then engine starts and stops speaking. I also renamed two methods to match the Google API closer (to avoid tts.initTextToSpeech and tts.textToSpeech). Finally I added a null check when the engine is shut down.

    opened by project-shasta 0
Releases(1.0)
Owner
Ilia Bardinov
Ilia Bardinov
A Modular Firebase plugin (Android) for godot

GDFirebase GDFirebase is a Modular Godot Plugin for using Firebase Depends on Godot game engine: git clone https://github.com/godotengine/godot Avail

FrogSquare 10 Dec 9, 2022
Android Chinese TTS Engine Base On Tensorflow TTS , use for TfLite Models Test。安卓离线中文TTS引擎,在TensorflowTTS基础上开发,用于TfLite模型测试。

Chinese TTS TF Lite 介绍 使用Kotlin + JetPack Compose + Tensorflow Lite开发的TTS引擎,可以完全离线使用。 可选两种模型:FastSpeech和Tacotron,这两种模型均来自TensorFlowTTS 文字转拼音方法来自:Tenso

benjamin wan 116 Jan 2, 2023
Material Design 3 Theme Engine for Android

A Material Design 3 Theme Engine for Android This library allows you to set Material 3 themes to your app. You can also manage dark mode and dynamic c

Prathamesh More 26 Dec 8, 2022
Kotlin Spring Boot on GCP App Engine Standard

Kotlin Spring Boot on GCP App Engine Standard Deploy locally git clone https://github.com/mvladoi/sinch-task.git cd springboot mvn spring-boot:run 7

Vladoi Marian 0 Nov 29, 2021
DroidFish is a feature-rich graphical chess user interface, combined with the very strong Stockfish chess engine.

Introduction DroidFish is a feature-rich graphical chess user interface, combined with the very strong Stockfish chess engine. DroidFish is primarily

Peter Österlund 233 Jan 4, 2023
PyCharm plugin for ruff. This plugin provides reformat code using ruff.

Ruff PyCharm Plugin A JetBrains PyCharm plugin for ruff. Help See documentation for more details. Sponsors ScreenShots Features Run ruff --fix as an a

Koudai Aono 4 Dec 17, 2022
Native android application that scans for text in images. Uses ML kit under the hood.

Scannerate - Ad free Text Recognition Android application built using Kotlin to extract text from images. Uses Google's ML kit library under the hood.

null 24 Dec 1, 2022
An Android library that allows blocking of colloquial words from text

AndroidProfanityFilter Add to project Step 1. Add it in your root build.gradle at the end of repositories: Groovy allprojects { repositories {

Phuc YNWA 1 Dec 29, 2022
KeyCip - an Android app that allows users to encrypt, decrypt and sign text, photos, videos and other files

KeyCip is an Android app that allows users to encrypt, decrypt and sign text, photos, videos and other files. To accomplish this goal, it relie

null 18 Nov 26, 2022
Simple app to Transfer Media and Text from computer to mobile.

TransferByte Simple app to Transfer Media and Text from computer to mobile.Written in kotlin. Recycler view used for listing the media posted and down

AFIL K UMMER 3 Jun 15, 2021