- bass
- 0.00
- mid
- 0.00
- high
- 0.00
Analysed in your browser. Not recorded or sent anywhere.
What you’ll learn
Request microphone access from a click, read time-domain data and stop the stream when finished.
// Inside a button click handler:
await audio.enableMic();
// Inside your animation loop:
const { waveform } = audio.snapshot('mic');
// When the user turns the microphone off:
audio.disableMic();