@amaui/ui-react
Version:
UI for React
29 lines (28 loc) • 910 B
TypeScript
import React from 'react';
import { ILine } from '../Line/Line';
import { IElementReference, IPropsAny, ISize } from '../types';
export interface ITextToSpeech extends ILine {
size?: ISize;
read?: string;
speechSynthesisUtterance?: any;
language?: string;
pitch?: number;
rate?: number;
text?: string;
voice?: any;
volume?: number;
loading?: any;
disabled?: any;
Icon?: IElementReference;
IconPause?: IElementReference;
onStart?: (event?: SpeechSynthesisEvent) => any;
onPause?: (event?: SpeechSynthesisEvent) => any;
onResume?: (event?: SpeechSynthesisEvent) => any;
onEnd?: (event?: SpeechSynthesisEvent) => any;
onError?: (event?: SpeechSynthesisEvent) => any;
TooltipProps?: IPropsAny;
IconButtonProps?: IPropsAny;
IconProps?: IPropsAny;
}
declare const TextToSpeech: React.FC<ITextToSpeech>;
export default TextToSpeech;