TTS: Add method to get the default voice

This returns by default the first voice, but can be reimplemented
in derived classes to return the system default voice.
This commit is contained in:
Thierry Crozat 2020-06-21 15:58:38 +01:00
parent c777d66f92
commit 3591003ea3

View File

@ -293,6 +293,11 @@ public:
*/
Array<int> getVoiceIndicesByGender (TTSVoice::Gender gender);
/**
* returns the index for the default voice.
*/
virtual int getDefaultVoice() { return 0; }
/**
* Pushes the current state of the TTS
*/