Loading core/java/android/speech/tts/TextToSpeech.java +10 −1 Original line number Diff line number Diff line Loading @@ -442,7 +442,7 @@ public class TextToSpeech { private final Map<String, Uri> mUtterances; private final Bundle mParams = new Bundle(); private final TtsEngines mEnginesHelper; private String mCurrentEngine = null; private volatile String mCurrentEngine = null; /** * The constructor for the TextToSpeech class, using the default TTS engine. Loading Loading @@ -573,6 +573,7 @@ public class TextToSpeech { service.setCallback(getPackageName(), null); service.stop(getPackageName()); mServiceConnection.disconnect(); mCurrentEngine = null; return null; } }, null, "shutdown"); Loading Loading @@ -868,6 +869,14 @@ public class TextToSpeech { return ERROR; } /** * @return the engine currently in use by this TextToSpeech instance. * @hide */ public String getCurrentEngine() { return mCurrentEngine; } /** * Sets the text-to-speech language. * The TTS engine will try to use the closest match to the specified Loading Loading
core/java/android/speech/tts/TextToSpeech.java +10 −1 Original line number Diff line number Diff line Loading @@ -442,7 +442,7 @@ public class TextToSpeech { private final Map<String, Uri> mUtterances; private final Bundle mParams = new Bundle(); private final TtsEngines mEnginesHelper; private String mCurrentEngine = null; private volatile String mCurrentEngine = null; /** * The constructor for the TextToSpeech class, using the default TTS engine. Loading Loading @@ -573,6 +573,7 @@ public class TextToSpeech { service.setCallback(getPackageName(), null); service.stop(getPackageName()); mServiceConnection.disconnect(); mCurrentEngine = null; return null; } }, null, "shutdown"); Loading Loading @@ -868,6 +869,14 @@ public class TextToSpeech { return ERROR; } /** * @return the engine currently in use by this TextToSpeech instance. * @hide */ public String getCurrentEngine() { return mCurrentEngine; } /** * Sets the text-to-speech language. * The TTS engine will try to use the closest match to the specified Loading