diff --git a/api/current.xml b/api/current.xml index c93f70629e538..2eecdbe2a463b 100644 --- a/api/current.xml +++ b/api/current.xml @@ -112903,6 +112903,344 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + params) - { - synchronized (mStartLock) { - Log.i("TTS received: ", ipaText); - if (!mStarted) { - return TTS_ERROR; - } - try { - // TODO support extra parameters, passing cache of current parameters for the moment - mITts.speakIpa(ipaText, queueMode, mCachedParams); - return TTS_SUCCESS; - } catch (RemoteException e) { - // TTS died; restart it. - mStarted = false; - initTts(); - } catch (NullPointerException e) { - // TTS died; restart it. - mStarted = false; - initTts(); - } catch (IllegalStateException e) { - // TTS died; restart it. - mStarted = false; - initTts(); - } - return TTS_ERROR; - } - } - - /** * Plays the earcon using the specified queueing mode and parameters. * @@ -755,48 +706,4 @@ public class TextToSpeech { } } - - /** - * Synthesizes the given IPA text to a file using the specified parameters. - * - * @param text - * The String of text that should be synthesized - * @param params - * A hashmap of parameters. - * @param filename - * The string that gives the full output filename; it should be - * something like "/sdcard/myappsounds/mysound.wav". - * - * @return Code indicating success or failure. See TTS_ERROR and TTS_SUCCESS. - * - * {@hide} - */ - public int synthesizeIpaToFile(String ipaText, - HashMap params, String filename) { - synchronized (mStartLock) { - if (!mStarted) { - return TTS_ERROR; - } - try { - // TODO support extra parameters, passing null for the moment - if (mITts.synthesizeIpaToFile(ipaText, null, filename)){ - return TTS_SUCCESS; - } - } catch (RemoteException e) { - // TTS died; restart it. - mStarted = false; - initTts(); - } catch (NullPointerException e) { - // TTS died; restart it. - mStarted = false; - initTts(); - } catch (IllegalStateException e) { - // TTS died; restart it. - mStarted = false; - initTts(); - } - return TTS_ERROR; - } - } - }