diff options
author | Jaromir Wysoglad | 2019-07-18 23:40:43 +0200 |
---|---|---|
committer | Filippos Karapetis | 2019-09-01 22:47:55 +0300 |
commit | bb3346fba7c77ac4db1a9d4542da01ca3d12bc46 (patch) | |
tree | aff6bec5eb802337fe50b6d9accb75b71d8c7338 | |
parent | 7c789129316e6afabe9c06fd2cac22d45f44cae4 (diff) | |
download | scummvm-rg350-bb3346fba7c77ac4db1a9d4542da01ca3d12bc46.tar.gz scummvm-rg350-bb3346fba7c77ac4db1a9d4542da01ca3d12bc46.tar.bz2 scummvm-rg350-bb3346fba7c77ac4db1a9d4542da01ca3d12bc46.zip |
TTS: Update the TTS documentation
-rw-r--r-- | common/text-to-speech.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/common/text-to-speech.h b/common/text-to-speech.h index d52e1de3d2..63b18395dc 100644 --- a/common/text-to-speech.h +++ b/common/text-to-speech.h @@ -197,7 +197,7 @@ public: /** * Sets the speech rate * - * @param rate Integer between -100 (slowest) and 100 (fastest) + * @param rate Integer between -100 (slowest) and 100 (fastest), 0 is the default */ virtual void setRate(int rate) { _ttsState->_rate = rate; } @@ -209,7 +209,7 @@ public: /** * Sets the pitch * - * @param pitch Integer between -100 (lowest) and 100 (highest) + * @param pitch Integer between -100 (lowest) and 100 (highest), 0 is the default */ virtual void setPitch(int pitch) { _ttsState->_pitch = pitch; } @@ -233,7 +233,7 @@ public: /** * Sets the speech language * - * @param language The language identifier as defined by ISO (2 characters long string) + * @param language The language identifier as defined by ISO 639-1 * * @note After using this method, it is probably a good idea to use setVoice, * because voices are usually language specific and so it is set to some platform @@ -261,6 +261,9 @@ public: */ bool popState(); + /** + * Frees the _data field from TTSVoice + */ virtual void freeVoiceData(void *data) {} protected: |