Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm's 300,000 packages pre-installed, including record-audio with all npm packages installed. Try it out:

var recordAudio = require("record-audio")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

record-audio v1.0.0

Audio recording using RecordRTC. RecordRTC is a client-side audio/video/gif/html recording library.

RecordRTC to Node.js

Audio recording using RecordRTC and saving to Node.js.

npm install record-audio

// to run it!
cd ./node_modules/record-audio/ && node index.js

This experiment:

  1. Records audio as wav file
  2. Makes HttpPost-Request to Node.js (FormData)
  3. Node.js code saves audio file into disk
  4. Audio file's URL is returned using same HTTP-callback for playback!

Make sure that directory names MUST NOT have spaces; e.g.

// invalid directory
C:\Hello Sir\Another\record-audio

// valid
C:\Hello-Sir\Another\record-audio

// invalid directory
C:\First\Second Dir\Third\record-audio

// valid
C:\\First\Second-Dir\Third\record-audio

=

License

RecordRTC is released under MIT licence . Copyright (c) 2013 Muaz Khan.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free