Using sox to split audio file (create sample set)

# split on silence
rm -f *.wav ; sox -V3 tanzbar_lite_misc.aif tanzbar_lite-.wav silence 1 0.005 0.1% 1 0.005 0.1% : newfile : restart ; ls -al | wc -l

# normalize:

for file in *.wav; do sox "$file" "n_$file" norm -0.1; done


mkdir sox
mv 0003\ mfb\ 522-1.aif sox
cd sox
sox -V3 mfb522.aif p.wav silence -l  0   1 0.5 0.1% : newfile : restart
sox -V3 mfb522.aif p.wav silence -l  0   1 0.1 0.1% : newfile : restart
sox -V3 mfb522.aif output.wav silence 1 3.0 0.1% 1 0.3 0.1% : newfile : restart
man sox
sox -V3 mfb_synth_ii.aif mfb_synth_ii.wav silence 1 3.0 0.1% 1 0.3 0.1% : newfile : restart
sox -V3 mfb_synth_ii.aif p.wav silence -l  0   1 0.1 0.1% : newfile : restart
sox RAW_VN_047.wav -v 0.99 -b16
sox RAW_VN_047.wav -v 0.99 -b16| less
sox -v 0.99 RAW_VN_047.wav -b16
sox -e signed-integer RAW_VN_047.wav -b16
sox RAW_VN_047.wav -b16
sox RAW_VN_047.wav -b16 out.wav
sox -e signed-integer RAW_VN_047.wav -b16 out.wav
sox -v 0.99 RAW_VN_047.wav -b16 out.wav
cd sox

Leave a comment

Your email address will not be published. Required fields are marked *