I'm trying to record audio from one of my audio interfaces by using ffmpeg.
I want to do this in order to send this audio afterward via websocket with NodeJS.
I'm able to record the audio with ffmpeg and save it to an audio file, but I do not want to save it, I just want the audio stream in order to execute the ffmpeg command from NodeJS and use this audio stream with the websocket.
This is my current ffmpeg command:
ffmpeg -f alsa -i hw:0,0 -af "pan=2c|c0=c0" output.wav
Is there any way of using it without the output file?