UNPKG

@onesy/ui-react

Version:
27 lines (26 loc) 865 B
import React from 'react'; import { ILine } from '../Line/Line'; import { IElementReference, IPropsAny } from '../types'; export declare type ITextToSpeech = ILine & { read?: string; speechSynthesisUtterance?: any; language?: string; pitch?: number; rate?: number; text?: string; voice?: any; volume?: number; loading?: 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;