Skip to content

Instantly share code, notes, and snippets.

@zz85
Last active March 21, 2018 22:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zz85/e629e02fe5d12bdebe0803d8b9ebd794 to your computer and use it in GitHub Desktop.
Save zz85/e629e02fe5d12bdebe0803d8b9ebd794 to your computer and use it in GitHub Desktop.
Audio Experiements
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
<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