UNPKG

@huluvu424242/honey-speaker

Version:

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

23 lines (22 loc) 1.33 kB
import { Synthese } from "./sprachsynthese"; export declare class Sprachausgabe { static synthese: Synthese; stimme: SpeechSynthesisVoice; audioLang: string; audioPitch: number; audioRate: number; audioVolume: number; voiceName: string; onSpeakerStarted: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null; onSpeakerFinished: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null; onSpeakerPaused: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null; onSpeakerResume: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null; onSpeakerFailed: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null; constructor(onSpeakerStarted: (ev: SpeechSynthesisEvent) => void, onSpeakerFinished: (ev: SpeechSynthesisEvent) => void, onSpeakerPaused: (ev: SpeechSynthesisEvent) => void, onSpeakerResume: (ev: SpeechSynthesisEvent) => void, onSpeakerFailed: (ev: SpeechSynthesisEvent) => void, audioLang: string, audioPitch: number, audioRate: number, audioVolume: number, voiceName: string); protected getDefaultStimme(): SpeechSynthesisVoice; protected erzeugeVorleser(text: string): SpeechSynthesisUtterance; textVorlesen(zuLesenderText: string): void; pause(): void; resume(): void; cancel(): void; }