1.3.7 • Published 1 year ago

react-recorder-voice v1.3.7

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Installation

npm i react-recorder-voice

or

yarn add react-recorder-voice

Usage

React

import { useRecorder } from "react-recorder-voice";

function App() {
  const {
    audioURL,
    audioData,
    timer,
    recordingStatus,
    cancelRecording,
    saveRecordedAudio,
    startRecording,
  } = useRecorder();

  return (
    <div>
      <button onClick={startRecording}>Start</button>
      <button onClick={cancelRecording}>Cancel</button>
      <button onClick={saveRecordedAudio}>Stop and Save</button>
      <audio controls src={audioURL}></audio>
      <h1>{timer}</h1>
    </div>
  );
}

export default App;
Options / PropsDescription
audioURLgives you recorded audio URL you can put this URL in src of audio tag
audioDatagives you recorded audio data for use or send with API or ...
timergives you a time for showing to user
recordingStatusgives you status of recording for example => recording or cancel
cancelRecordingwith this method you can cancel recording
saveRecordedAudiowith this method you can save recording
startRecordingwith this method you can start recording

Contributing

ّّIf you find a bug, just let me know or submit a pull request

Thanks.

1.3.7

1 year ago

1.3.6

1 year ago

1.3.5

1 year ago

1.3.4

1 year ago

1.3.3

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.9

1 year ago

1.2.8

2 years ago

1.2.7

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago