I use sox for splitting audio stream like this
stream | sox -t raw -r 16k -e signed -b 16 -c 1 - ./chunks/output.wav silence 1 0.3 0.1% 1 0.3 0.1% trim 0 55 : newfile : restart
Now sox write chunks to chunks folder. Can I pipe them to script for processing without writing to disk?
Something like this
stream | sox | node script.js