Options
All
  • Public
  • Public/Protected
  • All
Menu

The SyncMediaTtsContentBlockRenderer is used for speaking text that was generated from ContentBlock instances. Speech is generated using a ITtsSynthesizer, which must be passed as a parameter to the constructor. Highlighting of the spoken text is done using a ReaderViewAnnotationLayer which you can also pass to the constructor.

This renderer is compatible with SyncMediaObjectRefs with the type SyncMediaObjectRefType.TTS_CONTENT_BLOCK.

Hierarchy

  • SyncMediaTtsContentBlockRenderer

Implements

Index

Constructors

constructor

Methods

createRuntime

destroyRuntime

getOptions

getSupportedMediaObjectRefType

  • getSupportedMediaObjectRefType(): string

getTtsHighlightLayer

setOptions

setTtsHighlightLayer

  • Set the annotation layer used for highlighting spoken text. Note that you need to setup the styling of the highlight annotations using IReaderViewAnnotationLayer.setDefaultAnnotationOptions() See IReaderViewAnnotationLayer for more information.

    Pass null to disable highlighting.

    Parameters

    Returns void

Generated using TypeDoc