aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaromir Wysoglad2019-08-05 00:32:40 +0200
committerFilippos Karapetis2019-09-01 22:47:55 +0300
commit38e769430aedab13ad5c5b92d246d5393867a003 (patch)
tree78902d59fac50b3d6f7f6c70212beaf35fc9556e
parentbc101179804bddbb312a0e7ec79df3a29605c2ad (diff)
downloadscummvm-rg350-38e769430aedab13ad5c5b92d246d5393867a003.tar.gz
scummvm-rg350-38e769430aedab13ad5c5b92d246d5393867a003.tar.bz2
scummvm-rg350-38e769430aedab13ad5c5b92d246d5393867a003.zip
TTS: Improve documentation
-rw-r--r--common/text-to-speech.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/common/text-to-speech.h b/common/text-to-speech.h
index 2ec9e1e69a..d227c95d77 100644
--- a/common/text-to-speech.h
+++ b/common/text-to-speech.h
@@ -165,6 +165,16 @@ public:
*
* @param str The string to say
* @param action What to do if another string is just being said.
+ * Possible actions are:
+ * INTERRUPT - interrupts the current speech
+ * INTERRUPT_NO_REPEAT - interrupts the current 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)
+ * 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
* @param charset The encoding of the string. If empty this is assumed to be the
* encoding used for the GUI.
*/
@@ -269,6 +279,14 @@ public:
*/
Array<TTSVoice> getVoicesArray() { return _ttsState->_availableVoices; }
+ /**
+ * Returns array of indices of voices from the _availableVoices array, which
+ * have the needed gender.
+ *
+ * @param gender Gender, which indices should be returned
+ *
+ * @return Array of indices into _availableVoices
+ */
Array<int> getVoiceIndicesByGender (TTSVoice::Gender gender);
/**