{"id":89,"date":"2019-11-07T15:34:47","date_gmt":"2019-11-07T15:34:47","guid":{"rendered":"http:\/\/metajack.org\/blog\/?p=89"},"modified":"2021-01-18T17:40:22","modified_gmt":"2021-01-18T17:40:22","slug":"using-sox-to-split-audio-file-create-sample-set","status":"publish","type":"post","link":"https:\/\/metajack.org\/blog\/2019\/11\/07\/using-sox-to-split-audio-file-create-sample-set\/","title":{"rendered":"Using sox to split audio file (create sample set)"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code># split on silence\nrm -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\n\n# normalize:\n\nfor file in *.wav; do sox \"$file\" \"n_$file\" norm -0.1; done\n\n\nmkdir sox\nmv 0003\\ mfb\\ 522-1.aif sox\ncd sox\nsox -V3 mfb522.aif p.wav silence -l  0   1 0.5 0.1% : newfile : restart\nsox -V3 mfb522.aif p.wav silence -l  0   1 0.1 0.1% : newfile : restart\nsox -V3 mfb522.aif output.wav silence 1 3.0 0.1% 1 0.3 0.1% : newfile : restart\nman sox\nsox -V3 mfb_synth_ii.aif mfb_synth_ii.wav silence 1 3.0 0.1% 1 0.3 0.1% : newfile : restart\nsox -V3 mfb_synth_ii.aif p.wav silence -l  0   1 0.1 0.1% : newfile : restart\nsox RAW_VN_047.wav -v 0.99 -b16\nsox RAW_VN_047.wav -v 0.99 -b16| less\nsox -v 0.99 RAW_VN_047.wav -b16\nsox -e signed-integer RAW_VN_047.wav -b16\nsox RAW_VN_047.wav -b16\nsox RAW_VN_047.wav -b16 out.wav\nsox -e signed-integer RAW_VN_047.wav -b16 out.wav\nsox -v 0.99 RAW_VN_047.wav -b16 out.wav\ncd sox\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[13],"class_list":["post-89","post","type-post","status-publish","format-standard","hentry","category-music_making","tag-sox","entry"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/metajack.org\/blog\/wp-json\/wp\/v2\/posts\/89","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/metajack.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/metajack.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/metajack.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/metajack.org\/blog\/wp-json\/wp\/v2\/comments?post=89"}],"version-history":[{"count":3,"href":"https:\/\/metajack.org\/blog\/wp-json\/wp\/v2\/posts\/89\/revisions"}],"predecessor-version":[{"id":285,"href":"https:\/\/metajack.org\/blog\/wp-json\/wp\/v2\/posts\/89\/revisions\/285"}],"wp:attachment":[{"href":"https:\/\/metajack.org\/blog\/wp-json\/wp\/v2\/media?parent=89"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/metajack.org\/blog\/wp-json\/wp\/v2\/categories?post=89"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/metajack.org\/blog\/wp-json\/wp\/v2\/tags?post=89"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}