@ant-design/x
Version:
Craft AI-driven interfaces effortlessly
7 lines (6 loc) • 338 B
TypeScript
export type ControlledSpeechConfig = {
recording?: boolean;
onRecordingChange: (recording: boolean) => void;
};
export type AllowSpeech = boolean | ControlledSpeechConfig;
export default function useSpeech(onSpeech: (transcript: string) => void, allowSpeech?: AllowSpeech): readonly [any, (forceBreak: boolean) => void, boolean];