mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 05:35:35 +00:00
TtsService.java: Use the locale from the SynthesisRequest, not the last onLoadLanguage call.
This commit is contained in:
@@ -203,7 +203,7 @@ public class TtsService extends TextToSpeechService {
|
||||
@Override
|
||||
protected synchronized void onSynthesizeText(
|
||||
SynthesisRequest request, SynthesisCallback callback) {
|
||||
final int result = onLoadLanguage(mLanguage, mCountry, mVariant);
|
||||
final int result = onLoadLanguage(request.getLanguage(), request.getCountry(), request.getVariant());
|
||||
switch (result) {
|
||||
case TextToSpeech.LANG_MISSING_DATA:
|
||||
case TextToSpeech.LANG_NOT_SUPPORTED:
|
||||
|
||||
Reference in New Issue
Block a user