Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

raw-media-recorder

2.5.0 • Public • Published

Raw Media Recorder

Record audio from your microphone into AudioBuffer, useful when your browser (hi Safari 👋) doesn't support MediaRecorder or you don't want to decode from Opus.

Install

yarn add raw-media-recorder

or

npm install raw-media-recorder

Usage

let recorder = new RawMediaRecorder(new AudioContext())
recorder.onstart = () => {
    // Indicate recording, for example
    // this.setState({ recording: true })
}
recorder.onstop = () => {
    // On recording stoped, for example
    // this.setState({ recording: false })
}
recorder.ondata = data => {
    // Data recorder as AudioBuffer
}
 
// Start recording
recorder.start()
 
// Stop recording
recorder.stop()

Keywords

none

Install

npm i raw-media-recorder

DownloadsWeekly Downloads

2

Version

2.5.0

License

MIT

Last publish

Collaborators

  • avatar