mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 21:39:47 +00:00
Make Voice return the Java-based (ISO 639-3) language and country codes.
This commit is contained in:
@@ -221,7 +221,7 @@ public class TtsService extends TextToSpeechService {
|
||||
for (Voice voice : mAvailableVoices.values()) {
|
||||
int quality = android.speech.tts.Voice.QUALITY_NORMAL;
|
||||
int latency = android.speech.tts.Voice.LATENCY_VERY_LOW;
|
||||
voices.add(new android.speech.tts.Voice(voice.name, voice.locale, quality, latency, false, null));
|
||||
voices.add(new android.speech.tts.Voice(voice.name, new Locale(voice.locale.getISO3Language(), voice.locale.getISO3Country(), voice.locale.getVariant()), quality, latency, false, null));
|
||||
}
|
||||
return voices;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user