@lakshmiprasanth/react-voice-to-text
Version:
A modern React package for voice-to-text conversion with real-time speech recognition and file upload support
23 lines • 707 B
TypeScript
interface UseVoiceRecorderOptions {
language?: string;
continuous?: boolean;
interimResults?: boolean;
onResult?: (result: any) => void;
onError?: (error: string) => void;
onStart?: () => void;
onStop?: () => void;
}
interface UseVoiceRecorderReturn {
isInitialized: boolean;
isRecording: boolean;
isProcessing: boolean;
results: any[];
error: string | null;
startRecording: () => Promise<void>;
stopRecording: () => Promise<void>;
clearResults: () => void;
clearError: () => void;
}
export declare const useVoiceRecorder: (options?: UseVoiceRecorderOptions) => UseVoiceRecorderReturn;
export {};
//# sourceMappingURL=useVoiceRecorder.d.ts.map