Loading core/java/android/speech/tts/SynthesisCallback.java +3 −0 Original line number Diff line number Diff line Loading @@ -151,6 +151,9 @@ public interface SynthesisCallback { * listener ({@link UtteranceProgressListener#onRangeStart}) at the moment that frame has been * reached by the playback head. * * <p>This information can be used by the client, for example, to highlight ranges of the text * while it is spoken. * * <p>The markerInFrames is a frame index into the audio for this synthesis request, i.e. into * the concatenation of the audio bytes sent to audioAvailable for this synthesis request. The * definition of a frame depends on the format given by {@link #start}. See {@link AudioFormat} Loading core/java/android/speech/tts/UtteranceProgressListener.java +3 −0 Original line number Diff line number Diff line Loading @@ -128,6 +128,9 @@ public abstract class UtteranceProgressListener { * <p>This method is called when the audio is expected to start playing on the speaker. Note * that this is different from {@link #onAudioAvailable} which is called as soon as the audio is * generated. * <p>This information can be used, for example, to highlight ranges of the text while it is * spoken. * * <p>Only called if the engine supplies timing information by calling {@link * SynthesisCallback#rangeStart(int, int, int)}. Loading Loading
core/java/android/speech/tts/SynthesisCallback.java +3 −0 Original line number Diff line number Diff line Loading @@ -151,6 +151,9 @@ public interface SynthesisCallback { * listener ({@link UtteranceProgressListener#onRangeStart}) at the moment that frame has been * reached by the playback head. * * <p>This information can be used by the client, for example, to highlight ranges of the text * while it is spoken. * * <p>The markerInFrames is a frame index into the audio for this synthesis request, i.e. into * the concatenation of the audio bytes sent to audioAvailable for this synthesis request. The * definition of a frame depends on the format given by {@link #start}. See {@link AudioFormat} Loading
core/java/android/speech/tts/UtteranceProgressListener.java +3 −0 Original line number Diff line number Diff line Loading @@ -128,6 +128,9 @@ public abstract class UtteranceProgressListener { * <p>This method is called when the audio is expected to start playing on the speaker. Note * that this is different from {@link #onAudioAvailable} which is called as soon as the audio is * generated. * <p>This information can be used, for example, to highlight ranges of the text while it is * spoken. * * <p>Only called if the engine supplies timing information by calling {@link * SynthesisCallback#rangeStart(int, int, int)}. Loading