
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@cbmdf/react-voice-recorder
Advanced tools
This (react-voice-recorder) is a JavaScript library for React Applicaiton which will be used to record voice as audio and download the same.
This (react-voice-recorder) is a JavaScript library for React Applicaiton which will be used to record voice as audio and download the same.
Checkout the Demo
npm i react-voice-recorder
//This will download the latest version of Module.
import {Recorder} from 'react-voice-recorder'
import 'react-voice-recorder/dist/index.css'
this.state = {
audioDetails: {
url: null,
blob: null,
chunks: null,
duration: {
h: 0,
m: 0,
s: 0
}
}
}
handleAudioStop(data){
console.log(data)
this.setState({ audioDetails: data });
}
handleAudioUpload(file) {
console.log(file);
}
handleRest() {
const reset = {
url: null,
blob: null,
chunks: null,
duration: {
h: 0,
m: 0,
s: 0
}
};
this.setState({ audioDetails: reset });
}
<Recorder
record={true}
title={"New recording"}
audioURL={this.state.audioDetails.url}
showUIAudio
handleAudioStop={data => this.handleAudioStop(data)}
handleAudioUpload={data => this.handleAudioUpload(data)}
handleRest={() => this.handleRest()}
/>
Common props you may want to specify include:
record
- Flagtitle
- Title for the ModelaudioURL
- To hear what has been recorded.showUIAudio
- Either need to show HTML5 audio tag after stopped or not.handleAudioStop
- Once your are stop the record, this will send your the data to process. furtherhandleAudioUpload
- Onced click the upload button, Blob will be passed via propsMIT Licensed.
FAQs
This (react-voice-recorder) is a JavaScript library for React Applicaiton which will be used to record voice as audio and download the same.
The npm package @cbmdf/react-voice-recorder receives a total of 3 weekly downloads. As such, @cbmdf/react-voice-recorder popularity was classified as not popular.
We found that @cbmdf/react-voice-recorder demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.