2.1.3 • Published 2 years ago
simplevoicerecorderreact v2.1.3
simplevoicerecorderreact
Installation
npm i simplevoicerecorderreact
Import in your project file
import {Recorder} from 'simplevoicerecorderreact'
Declare inside the render menthod
handleRecordingStatus(status) {
console.log(status);
}
handleCountDown(data) {
console.log(data);
}
handleAudioUrl = (url) => {
console.log(url)
}
<Recorder
blobUrl={handleAudioUrl}
showAudioPlayUI={true}
className={""}
title={""}
hideAudioTitle={false}
status={handleRecordingStatus}
/>
Props
Common props you may want to specify include:
title
- Title for the ModelhideAudioTitle
- To hide the header which showing titleblobUrl
- To hear what has been recorded.showAudioPlayUI
- Either need to show HTML5 audio tag after stopped or not.className
- UI style