Base class for custom TTS implementations. DO NOT MODIFY THIS FILE! Please use or make a copy of Custom_TTS_Template.cs instead!
More...
|
enum | TTSInitializationState { NotInitialized,
InProgress,
Initialized
} |
| Custom Text-to-Speech Initialization state. NotInitialized - this TTS implementation cannot be used
InProgress - initialization is in progress, but not ready to synthesize speech (no calls to the SpeakText() function will be made)
Initialized - ready to synthesize speech
More...
|
|
|
static void | InitializeCustomTTS< T > () |
|
static void | Speak (string textToSay, float speakRate) |
|
static void | Stop () |
|
static bool | IsSpeaking () |
|
static TTSInitializationState | IsInitialized () |
|
|
virtual void | Initialize () |
| Initialize anything that needs to be done only once at the start More...
|
|
virtual TTSInitializationState | GetInitializationStatus () |
| Return whether or not the initialization is finished, or pending. If using a server based TTS method, the app might need to wait for a callback before initialization is complete. Returning 'InProgress' will tell the plugin to queue and wait any text that needs to be spoken. More...
|
|
virtual void | SpeakText (string textToSay, float speakRate) |
| Synthesize and speak the provided text. More...
|
|
virtual void | StopSpeaking () |
| Stop speaking (if anything is currently playing) More...
|
|
virtual bool | IsCurrentlySpeaking () |
| Return true if currently speaking (or about to speak) More...
|
|
Base class for custom TTS implementations. DO NOT MODIFY THIS FILE! Please use or make a copy of Custom_TTS_Template.cs instead!
Custom Text-to-Speech Initialization state. NotInitialized - this TTS implementation cannot be used
InProgress - initialization is in progress, but not ready to synthesize speech (no calls to the SpeakText() function will be made)
Initialized - ready to synthesize speech
Return whether or not the initialization is finished, or pending. If using a server based TTS method, the app might need to wait for a callback before initialization is complete. Returning 'InProgress' will tell the plugin to queue and wait any text that needs to be spoken.
- Returns
- TTSInitializationState.Initialized - ready to speak text
TTSInitializationState.InProgress - Waiting, should be completed soon
TTSInitializationState.NotInitalized - this TTS system is not available
virtual void UAP_CustomTTS.Initialize |
( |
| ) |
|
|
protectedvirtual |
Initialize anything that needs to be done only once at the start
virtual bool UAP_CustomTTS.IsCurrentlySpeaking |
( |
| ) |
|
|
protectedvirtual |
Return true if currently speaking (or about to speak)
virtual void UAP_CustomTTS.SpeakText |
( |
string |
textToSay, |
|
|
float |
speakRate |
|
) |
| |
|
protectedvirtual |
Synthesize and speak the provided text.
- Parameters
-
textToSay | Text string that is to be spoken. |
speakRate | Speed of speech, between 0..2, with 1.0 being normal speed |
virtual void UAP_CustomTTS.StopSpeaking |
( |
| ) |
|
|
protectedvirtual |
Stop speaking (if anything is currently playing)
The documentation for this class was generated from the following file:
- D:/Dev/P4/Projects/UnityAccessibilityPlugin/UnityAccessibilityPlugin/Assets/UAP/Scripts/Utility/UAP_CustomTTS.cs