Skip to content

Record audio input from the user microphone, export to .wav or ArrayBuffer, uses web workers & Recorderjs

License

Notifications You must be signed in to change notification settings

maxenceC/dead-simple-audio-recorder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

audio-recorder

Record audio input from the user microphone, export to .wav or ArrayBuffer

Methods

AudioRecorder has 2 public methods : startRecording() and stopRecording(format, filename, callback).

startRecording is synchronous and doesnt take any arguments.

stopRecording format argument accept 2 formats : 'wav' or 'Uint8Array', the first one must be called synchonously, the second one is async.

Usage

var audioRecorder = new AudioRecorder();

audioRecorder.startRecording();

//Sync usage with .wav
audioRecorder.stopRecording('wav', 'wavFile');

// Async usage with ArrayBuffer
audioRecorder.stopRecording('Uint8Array', 'ArrayBufferFile', function (error, result) {
    // result contains the audio file input Array buffer
});

Dependencies

Todo

  • Package for npm
  • Generate download link for firefox

About

Record audio input from the user microphone, export to .wav or ArrayBuffer, uses web workers & Recorderjs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published