Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

Text to Speech

An asset by karolisd
The page banner background of a mountain and forest
Text to Speech image holder but it is empty

Quick Information

0 ratings
Text to Speech icon image
karolisd
Text to Speech

Godot Text to Speech is a plugin that creates text-to-speech voice synthesis in the Godot engine using the FOSS Flite engine.

Supported Engine Version
4.4
Version String
1.3
License Version
MIT
Support Level
community
Modified Date
21 days ago
Git URL
Issue URL

Godot Text to Speech

Instructions

Once the plugin is installed the node types TextToSpeech1D, TextToSpeech2D & TextToSpeech3D should appear in the Godot engine. Add one of them to your scene and use the example below as a guideline.

extends Node2D

func _ready():
    await $TextToSpeech1.say("Text to speech is a really neat thing.")
    await $TextToSpeech2.say("We can also speak in different voices.", "cmu_us_slt")
    await $TextToSpeech1.say("And slower too.", "cmu_us_awb", 0.75)
    $TextToSpeech1.say("And we can both speak at the same time.", "cmu_us_fem")
    $TextToSpeech2.say("And we can both speak at the same time.", "cmu_us_eey")

Keep in mind

  • The current implementation is intended to have a small number of TextToSpeech1D/2D/3D nodes as the dynamic library and the voice file is loaded for each instance
  • Voices for this text to speech plugin are located under addons/text_to_speech/voices/. The voices are .flitevox voices renamed to .flitevox.res to be treated by Godot as resources. Additional voices can be added to this directory and used with this plugin.
  • It is a good practice to only keep the voices you use in the game, as all .flitevox.res files in the directory are shipped with the game and extracted to user:// at runtime.

Voices included

  • cmu_us_aew
  • cmu_us_ahw
  • cmu_us_awb
  • cmu_us_eey
  • cmu_us_fem
  • cmu_us_slp
  • cmu_us_slt

Godot Text to Speech is a plugin that creates text-to-speech voice synthesis in the Godot engine using the FOSS Flite engine.

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Text to Speech icon image
karolisd
Text to Speech

Godot Text to Speech is a plugin that creates text-to-speech voice synthesis in the Godot engine using the FOSS Flite engine.

Supported Engine Version
4.4
Version String
1.3
License Version
MIT
Support Level
community
Modified Date
21 days ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers