SyncMediaTtsContentBlockRendererOptions

data class SyncMediaTtsContentBlockRendererOptions(val highlightFirstWordOnSegmentActive: Boolean = false, val segmentHighlightAnnotationOptions: ReaderViewAnnotationOptions? = null, val segmentHighlightEnabled: Boolean = true, val wordHighlightAnnotationOptions: ReaderViewAnnotationOptions? = null, val wordHighlightEnabled: Boolean = false)

Options for a SyncMediaTtsContentBlockRenderer.

Constructors

Link copied to clipboard
constructor(highlightFirstWordOnSegmentActive: Boolean = false, segmentHighlightAnnotationOptions: ReaderViewAnnotationOptions? = null, segmentHighlightEnabled: Boolean = true, wordHighlightAnnotationOptions: ReaderViewAnnotationOptions? = null, wordHighlightEnabled: Boolean = false)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

If set to false, words will only be highlighted while the TTS is playing and word boundary events are being sent from the synthesizer. This means that when seeking while paused, no words will be highlighted.

Link copied to clipboard

ReaderViewAnnotationOptions to use for segment highlighting. If null, the options set with ReaderViewAnnotationLayer.setDefaultAnnotationOptions() will be used.

Link copied to clipboard

If the active segment should be highlighted.

Link copied to clipboard

ReaderViewAnnotationOptions to use for word highlighting. If null, the options set with ReaderViewAnnotationLayer.setDefaultAnnotationOptions() will be used.

Link copied to clipboard

If the currently spoken word should be highlighted.

Functions

Link copied to clipboard
fun serialize(generator: JsonGenerator)