Last active
March 21, 2018 22:55
-
-
Save zz85/e629e02fe5d12bdebe0803d8b9ebd794 to your computer and use it in GitHub Desktop.
Audio Experiements
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
Idea: use web rtc/ web audio to record a short audio clip, do pitch changing on it | |
Links | |
- http://recordrtc.org/ | |
- https://github.com/danielstorey/WebAudioTrack | |
- https://www.webrtc-experiment.com/msr/audio-recorder.html |
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
<html> | |
<body> | |
<script> | |
const constraints = { | |
audio: true, | |
video: false | |
} | |
function startRecording() { | |
navigator.mediaDevices.getUserMedia(constraints) | |
.then(function(stream) { | |
console.log('got stream', stream); | |
s = stream | |
}) | |
.catch(function(err) { | |
console.error(err); | |
}); | |
} | |
</script> | |
<button onclick="startRecording()">Record</button> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment