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:
parent
c777d66f92
commit
3591003ea3
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue