====== jrec2 ====== simple patch to the jack_capture example client, that implements silence detection and splitting of output files. ===== About ===== {{ oss:jrec:jrec2.png}} jrec2 can call hooks (invoke 3rd party software) upon detecting silence or audio. It include an optional //random-playback// control script that was used in an installation to record voice and if it detects silence plays back random snippets of previously recorded material. [[http://puredata.info/|pure-data]] might have been a wiser choice to maintain this; but besides the learning experience this c-code is very easy to deploy and keep-alive. ===== Source ===== {{oss:jrec:jrec-v2.c|C-source}} reqires: libsoundfile, jack-audio-connection-kit compile with: gcc -l jack -lsndfile jrec-v2.c -o jrec2 {{tag>JACK FLOSS MUSIX INSTALLATION}}