addons_gato_tts_ui_tts_ui.gd
Inherits: Control
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
Description
This Control is a menu used to configure the voice used for the GatoTextToSpeech addon. It allows selecting language, voice and reading speed. Voices are selected manually to do some work for the developers, so if your language doesn’t have a voice, feel free to open a PR!
Properties
|
||
|
|
|
|
|
|
|
|
Methods
void |
grab_focus(hide_focus: |
Constants
DEFAULT_LANGUAGE = &"ES" 🔗
Default language used in the GatoTextToSpeech addon. This can be changed by calling the GatoTTS.set_language method.
LANGUAGE_OPTIONS = Array[StringName]([&"ES", &"EN"]) 🔗
List of supported languages in the GatoTextToSpeech addon.
VOICE_SPEED_OPTIONS = Array[StringName]([&"1.0", &"1.5", &"2.0", &"0.5", &"0.75"]) 🔗
List of pre-defined reading speeds in the GatoTextToSpeech addon.
Property Descriptions
Control first_item 🔗
First node that will be selected when the menu grabs focus.
Variant language_selector = <unknown> 🔗
Reference to the language selector node.
Variant voice_selector = <unknown> 🔗
Reference to the voice selector node.
Variant speed_selector = <unknown> 🔗
Reference to the reading speed selector node.
Method Descriptions
void grab_focus(hide_focus: bool = false) 🔗
Method used when the node grabs focus from a controller. It gives focus to the first element in the menu.