aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaromir Wysoglad2019-07-18 23:40:43 +0200
committerFilippos Karapetis2019-09-01 22:47:55 +0300
commitbb3346fba7c77ac4db1a9d4542da01ca3d12bc46 (patch)
treeaff6bec5eb802337fe50b6d9accb75b71d8c7338
parent7c789129316e6afabe9c06fd2cac22d45f44cae4 (diff)
downloadscummvm-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.h9
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: