mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-03 22:26:48 +00:00
Use onIsLanguageAvailable in onGetDefaultVoiceNameFor instead of onLoadLanguage (language does not need to be loaded at this point).
This commit is contained in:
@@ -205,7 +205,7 @@ public class TtsService extends TextToSpeechService {
|
||||
|
||||
@Override
|
||||
public String onGetDefaultVoiceNameFor(String language, String country, String variant) {
|
||||
final int result = onLoadLanguage(language, country, variant);
|
||||
final int result = onIsLanguageAvailable(language, country, variant);
|
||||
switch (result) {
|
||||
case TextToSpeech.LANG_MISSING_DATA:
|
||||
case TextToSpeech.LANG_NOT_SUPPORTED:
|
||||
|
||||
Reference in New Issue
Block a user