UNPKG

@huluvu424242/honey-speech

Version:

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

21 lines (20 loc) 1.3 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; cancel(): void; }