Colibrio Reader Framework API - Cloud license
    Preparing search index...

    Interface ISyncMediaTtsContentBlockRefSource

    Describes how the TTS text was generated from a ContentBlock.

    interface ISyncMediaTtsContentBlockRefSource {
        contentBlockId: number;
        endOffset: number;
        srcMap: string;
        startOffset: number;
        ttsOffset: number;
    }

    Properties

    contentBlockId: number

    The id of the content block referenced by this instance.

    endOffset: number

    The end offset into the source contentBlock referenced.

    srcMap: string

    Describes how the ContentBlock string was modified into the text.value string intended for the SpeechSynthesis engine. An example srcMap value is: "A0:7,D0:3,D9:2"

    • Add (offset, count): A: For example: The string "A dog." => "Image: A dog" would result in: Add (offset: 0, count: 7) "A0:7"

    • Delete (offset, count): D: For example " Some text " => "Some text" would result in: Delete(0, 3), Delete(9, 2) "D0:3,D9:2"

    • Replace (offset, deleteCount, addCount): R:: Replace operations are treated as a Delete + Add action. "R5:8:1"

    startOffset: number

    The start offset into the source contentBlock text referenced.

    ttsOffset: number

    The start offset into the mutated ttsRef.text.value where its content corresponds to this instance.