UNPKG

@huluvu424242/honey-slideshow

Version:

Text to Speech component wich is reading texts from DOM elements.

23 lines (22 loc) 899 B
import { Sprachauswahl } from "../stimmenauswahl/stimmenauswahl"; import { Sprachsynthese } from "./sprachsynthese"; export interface VorleserCallbacks { onend?: () => void; onstart?: () => void; onpause?: () => void; onresume?: () => void; onerror?: () => void; } export declare class Sprachausgabe { sprachSynthese: Sprachsynthese; sprachauswahl: Sprachauswahl; vorleserCallbacks: VorleserCallbacks; constructor(sprachSynthese: Sprachsynthese, sprachauswahl: Sprachauswahl, vorleserCallbacks?: VorleserCallbacks); initialisiereVorleserStimme(vorleser: SpeechSynthesisUtterance): void; erzeugeVorleser(text: string): SpeechSynthesisUtterance; textVorlesen(zuLesenderText: string): void; cancelSpeakingAndClearQueue(): void; pauseSpeakingFromQueue(): void; resumeSpeakingFromQueue(): void; isPaused(): boolean; }