Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 377 Bytes

microphone.md

File metadata and controls

19 lines (16 loc) · 377 Bytes

Microphone

View source code

import microphone from 'sono/utils';
import analyser from 'sono/effects';

const mic = microphone(stream => {
    // user allowed mic
	const sound = sono.create(stream);
    const analyse = sound.effects.add(analyser());
}, err => {
	// user denied mic
}, err => {
	// error
});
mic.connect();