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

Commit 8efed2eb authored by Niels Egberts's avatar Niels Egberts Committed by android-build-merger
Browse files

Merge "Document examples where a developer might use the APIs." into oc-dev am: 3a543a1b

am: 937f46ff

Change-Id: I7a8a01512ec5f544c3939d817d0baae8521d9e71
parents 5d0edfcf 937f46ff
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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}
+3 −0
Original line number 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
     * 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)}.