Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 04637f3d authored by Niels Egberts's avatar Niels Egberts
Browse files

Document examples where a developer might use the APIs.

Test: mmma frameworks/base/
Bug: 35767714

Change-Id: I845db36869b84a18e79d7fe28f10031cfe836617
parent 39608b85
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -151,6 +151,9 @@ public interface SynthesisCallback {
     * listener ({@link UtteranceProgressListener#onRangeStart}) at the moment that frame has been
     * listener ({@link UtteranceProgressListener#onRangeStart}) at the moment that frame has been
     * reached by the playback head.
     * 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
     * <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
     * 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}
     * definition of a frame depends on the format given by {@link #start}. See {@link AudioFormat}
+3 −0
Original line number Original line Diff line number Diff line
@@ -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
     * <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
     * that this is different from {@link #onAudioAvailable} which is called as soon as the audio is
     * generated.
     * 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
     * <p>Only called if the engine supplies timing information by calling {@link
     * SynthesisCallback#rangeStart(int, int, int)}.
     * SynthesisCallback#rangeStart(int, int, int)}.