Save a PCM audio stream into silence-delimited sub-streams as FLAC.
Currently ripcut is hard-coded to work with a specific PCM format.
Most parameters can be adjusted by modifying the config variable in main.go and running go build.
Support for custom sample size / number of channels requires more work.
git clone https://github.com/megapctr/ripcut
cd ripcut
go build
# using a file as input
./ripcut < path/to/your/stream.pcm
# using parecord - see `rec.sh` for details
parecord [options] | ./ripcutSub-streams will be saved as stream_*.flac