UNPKG

@sarafhbk/react-audio-recorder

Version:

This is a simple audio recorder package for react application using the javascript Web Audio API.

14 lines (13 loc) 654 B
import { ReactElement } from 'react'; export declare const ReactAudioRecorder: ({ render }: { render: ({ startRecording, stopRecording, pauseRecording, resumeRecording, status, audioResult, errorMessage, timer }: { startRecording: () => void; stopRecording: () => void; pauseRecording: () => void; resumeRecording: () => void; status: string; audioResult: string; errorMessage: string; timer: number; }) => ReactElement; }) => ReactElement<any, string | ((props: any) => ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;