![]() started, ended, canceled/failed, callback function take one int parameter, the utterance_id passed to tts_speak.void DisplayServer.tts_set_utterance_callback(event, callable) - adds a callback for the specific utterance event:.void DisplayServer.tts_speak(text, voice_id, volume, pitch, rate, utterance_id, interrupt) - asynchronous, adds utterance with the specified parameters to the queue.PackedStringArray DisplayServer.tts_get_voices_for_language(language) - returns array of voice IDs for the language.Array DisplayServer.tts_get_voices() - voice/language enumeration, returns Array of Dictionaries with following key-value pairs "name":String, "id":String, "language":String.Thanks to LGPL dependency on Linux is loaded dynamically (the same way other LGPL libs are linked: asoundlib, pulseaudio and udev), on other platforms TTS is part of the core system API.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |