[Announce] node-red-contrib-sox-utils : first beta (testers wanted)

If you actually wanted to stream that wouldnt work with any format right now as the play node only accept single buffers/files no matter which format and not a stream of buffers.
I had originally implemented playback of an input stream but it was very brittle as what the nodes do intenally is not actually the same as using straight pipes on the commandline to get the audio to sox.
So right now the only way to play audio from the record node is to record first in the wav buffer output or wav file mode and than pass that to the play node once recording finished.
If i revisit the playback of a stream in the future it will be in form of an additional mode added to the current choice of keep, replace and queue as a stream is not compatible with any of the current playback models.

Raw PCM audio support in general is on my backlog for both the convert and play node but im not quite sure yet on how i will require the additional input parameters like rate and so on. I still have to give this quite some thought as I will also have to check the input parameters object when the format is raw and for the play node i would probably than have to add wav headers to input raw audio files/buffers before playback so that the above mentioned queue logic wouldnt have to be completely rewritten.

1 Like