diff --git a/OsmAnd/res/values/strings.xml b/OsmAnd/res/values/strings.xml index 2a8afed0ce..b5e5ac5c53 100644 --- a/OsmAnd/res/values/strings.xml +++ b/OsmAnd/res/values/strings.xml @@ -11,6 +11,7 @@ Thx - Hardy --> + Cannot initialize TTS engine OSM Edits Tapping this action button shows or hides contour lines on the map Show contour lines diff --git a/OsmAnd/src/net/osmand/plus/voice/TTSCommandPlayerImpl.java b/OsmAnd/src/net/osmand/plus/voice/TTSCommandPlayerImpl.java index 617713e733..924981c8c2 100644 --- a/OsmAnd/src/net/osmand/plus/voice/TTSCommandPlayerImpl.java +++ b/OsmAnd/src/net/osmand/plus/voice/TTSCommandPlayerImpl.java @@ -199,6 +199,7 @@ public class TTSCommandPlayerImpl extends AbstractPrologCommandPlayer { if (status != TextToSpeech.SUCCESS) { ttsVoiceStatus = "NO INIT SUCCESS"; internalClear(); + ((OsmandApplication) ctx.getApplicationContext()).showToastMessage(ctx.getString(R.string.tts_initialization_error)); } else if (mTts != null) { speechAllowed = true; switch (mTts.isLanguageAvailable(newLocale)) {