``` npm i react-recorder-voice ```
npm install react-recorder-voice```
npm i react-recorder-voice
or
``
yarn add react-recorder-voice
React
`JavaScript
import { useRecorder } from "react-recorder-voice";
function App() {
const {
audioURL,
audioData,
timer,
recordingStatus,
cancelRecording,
saveRecordedAudio,
startRecording,
} = useRecorder();
return (
export default App;
``
| Options / Props | Description |
| ----------------- | --------------------------------------------------------------------- |
| audioURL | gives you recorded audio URL you can put this URL in src of audio tag |
| audioData | gives you recorded audio data for use or send with API or ... |
| timer | gives you a time for showing to user |
| recordingStatus | gives you status of recording for example => recording or cancel |
| cancelRecording | with this method you can cancel recording |
| saveRecordedAudio | with this method you can save recording |
| startRecording | with this method you can start recording |
ّّIf you find a bug, just let me know or submit a pull request
Thanks.