#Simple Audio
A simple audio recorder for the web.
###Credits This project is based heavily off of a blog post by Thibault Imbert as well as this great talk by Chris Wilson.
###Word of Warning These APIs are constantly changing. Many of the technologies used in this plugin have not been finalized and may be subject to change. Proceed with caution.
####Adding it to a page
Just download src/recorder.js
to your project and require it via
<script type="text/javascript" src="src/recorder.js"></script>
n. After cloning, install dependencies via npm install
.
n. Run npm start
. This will autocompile coffeescript and serve static files at http://localhost:8888.
n. Take a look at http://localhost:8888/index.html and http://localhost:8888/SpecRunner.html.
###Examples:
####Record a file:
voice = new Recording()
voice.start()
####Stop Recording:
voice.stop()
####Reference the File returns a URL Object
voice.file()
The example above makes it possible to pin the return value to a link or post to the server via AJAX.
####Download the File Locally
voice.download()
Optionally, you may specify a filename for the download.
voice.download('whatdoesthefoxsay.wav')