Skip to content

Instantly share code, notes, and snippets.

View joaom182's full-sized avatar
🏠
Working from home

João Marcos Mainka joaom182

🏠
Working from home
View GitHub Profile
@louisgv
louisgv / mic-recorder.ts
Last active March 7, 2024 12:16
AudioWorklet replacement for ScriptProcessorNode
const main = async () => {
const context = new AudioContext();
const microphone = await navigator.mediaDevices
.getUserMedia({
audio: true
})
const source = context.createMediaStreamSource(microphone);