Public Types | |
| enum | SpeechState { BROKEN, READY, SPEAKING, PAUSED } |
Public Types inherited from Common::TextToSpeechManager | |
| enum | Action { INTERRUPT, INTERRUPT_NO_REPEAT, QUEUE, QUEUE_NO_REPEAT, DROP } |
Public Member Functions | |
| bool | say (const Common::U32String &str, Action action) override |
| bool | stop () override |
| bool | pause () override |
| bool | resume () override |
| bool | isSpeaking () override |
| bool | isPaused () override |
| bool | isReady () override |
| void | setVoice (unsigned index) override |
| void | freeVoiceData (void *data) override |
| void | setLanguage (Common::String language) override |
Public Member Functions inherited from Common::TextToSpeechManager | |
| TextToSpeechManager () | |
| bool | say (const String &str, Action action, CodePage charset=kUtf8) |
| bool | say (const U32String &str) |
| bool | say (const String &str, CodePage charset=kUtf8) |
| TTSVoice | getVoice () |
| virtual void | setRate (int rate) |
| int | getRate () |
| virtual void | setPitch (int pitch) |
| int | getPitch () |
| virtual void | setVolume (unsigned volume) |
| int | getVolume () |
| String | getLanguage () |
| Array< TTSVoice > | getVoicesArray () |
| Array< int > | getVoiceIndicesByGender (TTSVoice::Gender gender) |
| virtual int | getDefaultVoice () |
| void | pushState () |
| bool | popState () |
| void | enable (bool on) |
Static Public Member Functions | |
| static void | initJNI (JNIEnv *env) |
Additional Inherited Members | |
Protected Member Functions inherited from Common::TextToSpeechManager | |
| void | clearState () |
Protected Attributes inherited from Common::TextToSpeechManager | |
| TTSState * | _ttsState |
|
overridevirtual |
Says the given string
| str | The string to say |
| action | What to do if another string is just being said. Possible actions are: INTERRUPT - interrupts the current speech INTERRUPT_NO_REPEAT - interrupts the speech (deletes the whole queue), if the str is the same as the string currently being said, it lets the current string finish and drops the new request. QUEUE - queues the speech QUEUE_NO_REPEAT - queues the speech only if the str is different than the last string in the queue (or the string, that is currently being said if the queue is empty) DROP - does nothing if there is anything being said at the moment |
Reimplemented from Common::TextToSpeechManager.
|
overridevirtual |
Stops the speech
Reimplemented from Common::TextToSpeechManager.
|
overridevirtual |
Pauses the speech
Reimplemented from Common::TextToSpeechManager.
|
overridevirtual |
Resumes the speech
Reimplemented from Common::TextToSpeechManager.
|
inlineoverridevirtual |
Returns true, if the TTS engine is speaking
Reimplemented from Common::TextToSpeechManager.
|
inlineoverridevirtual |
Returns true, if the TTS engine is paused
Reimplemented from Common::TextToSpeechManager.
|
inlineoverridevirtual |
Returns true, if the TTS engine is ready to speak (isn't speaking and isn't paused)
Reimplemented from Common::TextToSpeechManager.
|
overridevirtual |
Sets a voice to be used by the TTS.
| index | The index of the voice inside the _ttsState->_availableVoices array |
Reimplemented from Common::TextToSpeechManager.
|
inlineoverridevirtual |
Frees the _data field from TTSVoice
Reimplemented from Common::TextToSpeechManager.
|
overridevirtual |
Sets the speech language
| language | The language identifier as defined by ISO 639-1 |
Reimplemented from Common::TextToSpeechManager.