diff options
Diffstat (limited to 'core/java/android/speech/tts/TextToSpeech.java')
-rwxr-xr-x | core/java/android/speech/tts/TextToSpeech.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/java/android/speech/tts/TextToSpeech.java b/core/java/android/speech/tts/TextToSpeech.java index 9e04cf8..80b3a74 100755 --- a/core/java/android/speech/tts/TextToSpeech.java +++ b/core/java/android/speech/tts/TextToSpeech.java @@ -1211,9 +1211,8 @@ public class TextToSpeech { mCachedParams[Engine.PARAM_POSITION_ENGINE + 1] = extra; } } - if (mITts.synthesizeToFile(mPackageName, text, mCachedParams, filename)){ - result = SUCCESS; - } + result = mITts.synthesizeToFile(mPackageName, text, mCachedParams, filename) ? + SUCCESS : ERROR; } catch (RemoteException e) { // TTS died; restart it. Log.e("TextToSpeech.java - synthesizeToFile", "RemoteException"); |