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
/* ******************************************************************************************* | |
* PUPPETEER | |
* https://pptr.dev/ | |
* ******************************************************************************************* */ | |
// When you install Puppeteer, it downloads a recent version of Chromium (~170MB Mac, ~282MB Linux, ~280MB Win) | |
// that is guaranteed to work with the API. | |
npm install puppeteer |
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
const main = async () => { | |
const context = new AudioContext(); | |
const microphone = await navigator.mediaDevices | |
.getUserMedia({ | |
audio: true | |
}) | |
const source = context.createMediaStreamSource(microphone); |