mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 05:35:35 +00:00
TtsService: clear mAvailableVoices before repopulating it
This commit is contained in:
@@ -93,6 +93,7 @@ public class TtsService extends TextToSpeechService {
|
||||
}
|
||||
|
||||
mEngine = new SpeechSynthesis(this, mSynthCallback);
|
||||
mAvailableVoices.clear();
|
||||
for (Voice voice : mEngine.getAvailableVoices()) {
|
||||
mAvailableVoices.put(voice.name, voice);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user