Created
October 7, 2017 20:24
-
-
Save bryanjenningz/3e70e38dc6086b0df2017f6d148d0af1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
const sleep = time => new Promise(resolve => setTimeout(resolve, time)); | |
(async () => { | |
const recorder = await recordAudio(); | |
recorder.start(); | |
await sleep(3000); | |
const audio = await recorder.stop(); | |
audio.play(); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment