UNPKG

r2-navigator-js

Version:

Readium 2 'navigator' for NodeJS (TypeScript)

17 lines (16 loc) 1.36 kB
export declare function ttsPlay(speed: number, voice: SpeechSynthesisVoice | null, focusScrollRaw: (el: HTMLOrSVGElement, doFocus: boolean, animate: boolean, domRect: DOMRect | undefined) => void, rootElem: Element | undefined, startElem: Element | undefined, startTextNode: Node | undefined, startTextNodeOffset: number, ensureTwoPageSpreadWithOddColumnsIsOffsetTempDisable: () => number, ensureTwoPageSpreadWithOddColumnsIsOffsetReEnable: (val: number) => void): void; export declare function ttsStop(): void; export declare function ttsPause(doNotReset?: boolean): void; export declare function ttsVoice(voice: SpeechSynthesisVoice | null): void; export declare function ttsPlaybackRate(speed: number): void; export declare function ttsResume(): void; export declare function isTtsPlaying(): boolean; export declare function isTtsActive(): boolean; export declare function ttsPauseOrResume(): void; export declare function ttsQueueSize(): number; export declare function ttsQueueCurrentIndex(): number; export declare function ttsQueueCurrentText(): string | undefined; export declare function ttsNext(skipSentences?: boolean): void; export declare function ttsPrevious(skipSentences?: boolean): void; export declare function ttsPreviewAndEventuallyPlayQueueIndex(n: number): void; export declare function ttsPlayQueueIndex(ttsQueueIndex: number): void;