mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-01 21:58:52 +00:00
TtsService.java: use the context from the TtsService object itself
This commit is contained in:
@@ -114,10 +114,9 @@ public class TtsService extends TextToSpeechService {
|
||||
|
||||
@Override
|
||||
protected int onIsLanguageAvailable(String language, String country, String variant) {
|
||||
Context context = getApplicationContext();
|
||||
if (!mEngineInitialized ||
|
||||
!CheckVoiceData.hasBaseResources(context) ||
|
||||
CheckVoiceData.canUpgradeResources(context)) {
|
||||
!CheckVoiceData.hasBaseResources(this) ||
|
||||
CheckVoiceData.canUpgradeResources(this)) {
|
||||
return TextToSpeech.LANG_MISSING_DATA;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user