History log of /frameworks/base/core/java/android/speech/tts/FileSynthesisCallback.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
9c3d7a888d0c5c09f0153e81018ff68aa6e91712 20-Jul-2012 Narayan Kamath <narayan@google.com> Fixes to TextToSpeechService#synthesizeToFile

- Fixes a strict mode violation, defers file validity checks
to when the engine starts synthesizing audio.
- Fixes some log spam when done() is called twice.

bug:6215680
bug:5415258
Change-Id: I4001be848b5208422d4091b7398e94ed311c649f
/frameworks/base/core/java/android/speech/tts/FileSynthesisCallback.java
563fd3ae1b9d388f883b77b98a641a57bbdb6aed 27-Oct-2011 Narayan Kamath <narayan@google.com> Widen permissions on synthesized files.

When synthesized files are written to app private data dirs,
they are written with owner/grp set to the TTS engine and
are inaccessible by the app itself. This is a reported regression
from gingerbread behaviour. Note that the dir in which the
engine writes files is itself already world writable.

bug:5523587
Change-Id: I2cb26c6f3c3d9cb3cedd60fab32c99a85a27f4b1
/frameworks/base/core/java/android/speech/tts/FileSynthesisCallback.java
c3da8818f0598b3ab2cd6f4168349da6d0f72cb1 01-Jul-2011 Narayan Kamath <narayan@google.com> Remove the completeAudioAvailable API.

Measurements have shown that the audio track in streaming mode
is pretty efficient as is, thanks to dalvik's JNI implementation.

Also, in streaming mode write( ) blocks until all data has been
copied to the mixer, which is the kind of behaviour we want so
that we don't have to explicitly block in our code. Also,
the java AudioTrack is thread-safe with respect to stop( ) calls
during write, which means we can do everything completeAudioAvailable
did, just as efficiently without it.

Change-Id: I70a8a108d94c7260676673979b5ea29f37fa5db4
/frameworks/base/core/java/android/speech/tts/FileSynthesisCallback.java
e22b69a7de0349b99d3107349d1d3aa72d62c841 08-Jun-2011 Narayan Kamath <narayan@google.com> Make changes to the TTS api suggested by the API review.

This ended up making the implementation a lot cleaner
as well. See the bug listed below for some background.

bug:4553470
Change-Id: If16476a57e389c2f9b228f6548e426642d292b49
/frameworks/base/core/java/android/speech/tts/FileSynthesisCallback.java