@onesy/ui-react
Version:
UI for React
28 lines (27 loc) • 951 B
TypeScript
import React from 'react';
import { ILine } from '../Line/Line';
import { IElementReference, IPropsAny } from '../types';
export declare type ISpeechToText = Omit<ILine, 'onChange'> & {
SpeechRecognition?: any;
continuous?: boolean;
grammars?: any;
interimResults?: boolean;
language?: string;
maxAlternatives?: number;
join?: string;
loading?: any;
Icon?: IElementReference;
IconStop?: IElementReference;
onListen?: (event: React.MouseEvent<any>) => any;
onListenStop?: (event: React.MouseEvent<any>) => any;
onChange?: (value: string) => any;
onData?: (value: string) => any;
onStart?: (event: React.MouseEvent<any>) => any;
onStop?: (event: React.MouseEvent<any>) => any;
onError?: (error: Error) => any;
TooltipProps?: IPropsAny;
IconButtonProps?: IPropsAny;
IconProps?: IPropsAny;
};
declare const SpeechToText: React.FC<ISpeechToText>;
export default SpeechToText;