How to record sound from a microphone using the Core Sound library?

Hi,

I’m looking for a way to record and playback sound from a microphone using the Core Sound library. It seems there are no examples to do this and looking at the API I don’t see a way to get from AudioIn to AudioSample or SoundFile. I don’t need to save it to disk. A buffer that I can play back later would be enough.

Am I missing something?

Thanks a lot.

Hi @jvolker you can use p5.SoundRecorder() to record sound it has multiple option like setInput() , record(), stop(). you can also refer to this link