You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import'sono/utils/recorder';import'sono/utils/microphone';letmicSound;letrecorder;functiononMicConnected(stream){micSound=sono.create(stream);// add recorder, setting passThrough to false// to avoid feedback loop between mic and speakersrecorder=sono.utils.recorder(false);recorder.start(micSound);};stopButton.addEventListener('click',function(){constbuffer=recorder.stop();constrecordedSound=sono.create(buffer);recordedSound.play();});constmic=sono.utils.microphone(onMicConnected);mic.connect();