@huluvu424242/honey-speech
Version:
Text to Speech component wich is reading texts from DOM elements.
138 lines (137 loc) • 3.8 kB
TypeScript
/* eslint-disable */
/* tslint:disable */
/**
* This is an autogenerated file created by the Stencil compiler.
* It contains typing information for all components that exist in this project.
*/
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
export namespace Components {
interface HoneySpeech {
/**
* 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;
/**
* icon height
*/
"iconheight": string;
/**
* icon width
*/
"iconwidth": string;
/**
* 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;
/**
* voice name used of Web Speech API
*/
"voicename": string;
}
}
declare global {
interface HTMLHoneySpeechElement extends Components.HoneySpeech, HTMLStencilElement {
}
var HTMLHoneySpeechElement: {
prototype: HTMLHoneySpeechElement;
new (): HTMLHoneySpeechElement;
};
interface HTMLElementTagNameMap {
"honey-speech": HTMLHoneySpeechElement;
}
}
declare namespace LocalJSX {
interface HoneySpeech {
/**
* 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;
/**
* icon height
*/
"iconheight"?: string;
/**
* icon width
*/
"iconwidth"?: string;
/**
* Fired if the voice has failed to speak.
*/
"onHoneySpeakerFailed"?: (event: CustomEvent<string>) => void;
/**
* Fired if the voice has finished with speaking.
*/
"onHoneySpeakerFinished"?: (event: CustomEvent<string>) => void;
/**
* Fired if the voice is paused with speaking.
*/
"onHoneySpeakerPaused"?: (event: CustomEvent<string>) => void;
/**
* Fired if the voice is resumed after paused with speaking.
*/
"onHoneySpeakerResume"?: (event: CustomEvent<string>) => void;
/**
* Fired if the voice is speaking.
*/
"onHoneySpeakerStarted"?: (event: CustomEvent<string>) => void;
/**
* 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;
/**
* voice name used of Web Speech API
*/
"voicename"?: string;
}
interface IntrinsicElements {
"honey-speech": HoneySpeech;
}
}
export { LocalJSX as JSX };
declare module "@stencil/core" {
export namespace JSX {
interface IntrinsicElements {
"honey-speech": LocalJSX.HoneySpeech & JSXBase.HTMLAttributes<HTMLHoneySpeechElement>;
}
}
}