Created
August 29, 2014 22:49
-
-
Save mikkoh/c9fa36e7afc040cf79b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//originally from https://github.com/mattdiamond/Recorderjs/blob/master/recorder.js | |
var url = (window.URL || window.webkitURL).createObjectURL(data); | |
var link = window.document.createElement('a'); | |
link.href = url; | |
link.download = 'output.wav'; | |
var click = document.createEvent("Event"); | |
click.initEvent("click", true, true); | |
link.dispatchEvent(click); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment