External input for microphone record

Hi kfrajer, thank you for your response!

So far I have implemented the first 4 blocks you have mentioned where the raspberry pi 3 is able to receive the stream of audio data from the external device via BLE using a node.js script. Where the data received is in the format of an array of size 20. Thus I am on the final part of the problem, using p5.js sound to capture and record this received stream of audio data.

Looking through the p5.sound library there is a function for mic = p5.audioIn; where it requests the browsers mic. Instead I would like the audio input to be from the stream of data I receive from the BLE device.

I was wondering if there is a way to route the stream of audio data as audioIn or if there is a similar method to be able to record this data using p5 sound.

Thank you !