Hi kf,
Yes I was wanting to use p5 since I was using node.js as I thought it would be an easier alternative.
Since I want to just record the sound and store it, I will attempt storing the stream of data in a txt.file and converting it to a sound file at a later stage.
Thank you very much for your input!