UNPKG

@huluvu424242/honey-speech

Version:

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

103 lines (102 loc) 2.34 kB
import { EventEmitter } from "../../stencil-public-runtime"; import { Sprachausgabe } from "../../libs/sprachausgabe"; export declare class HoneySpeech { sprachAusgabe: Sprachausgabe; /** * Host Element */ hostElement: HTMLElement; /** * Id des Host Elements, falls nicht verfügbar wird diese generiert */ ident: string; /** * true wenn das Tag ohne alt Attribute deklariert wurde */ createAltText: boolean; /** * true wenn das Tag ohne title Attribut deklariert wurde */ createTitleText: boolean; /** * taborder */ taborder: string; /** * if the toggle button is pressed */ isPressed: boolean; /** * use pure speaker symbol for silence state */ pure: boolean; /** * An comma separated list with ids of DOM elements * which inner text should be speech. */ textids: string; /** * enable console logging */ verbose: boolean; /** * icon width */ iconwidth: string; /** * icon height */ iconheight: string; /** * i18n language ident for Web Speech API: de-DE or en or de ... */ audiolang: string; /** * pitch for Web Speech API */ audiopitch: number; /** * rate for Web Speech API */ audiorate: number; /** * volume for Web Speech API */ audiovolume: number; /** * voice name used of Web Speech API */ voicename: string; /** * Fired if the voice is speaking. */ honeySpeakerStarted: EventEmitter<string>; /** * Fired if the voice has finished with speaking. */ honeySpeakerFinished: EventEmitter<string>; /** * Fired if the voice is paused with speaking. */ honeySpeakerPaused: EventEmitter<string>; /** * Fired if the voice is resumed after paused with speaking. */ honeySpeakerResume: EventEmitter<string>; /** * Fired if the voice has failed to speak. */ honeySpeakerFailed: EventEmitter<string>; connectedCallback(): void; componentWillLoad(): void; protected createNewTitleText(): string; protected getTitleText(): string; protected createNewAltText(): string; protected getAltText(): string; protected getTexte(): string[]; protected textVorlesen(text: string): Promise<void>; protected toggleAction(): void; protected onClick(): void; protected onKeyDown(ev: KeyboardEvent): void; render(): any; }