[{"data":1,"prerenderedAt":121},["ShallowReactive",2],{"blog-post-sox-concatenate-audio-files":3,"recent-posts":77},{"id":4,"uid":5,"url":6,"type":7,"href":8,"tags":9,"first_publication_date":10,"last_publication_date":10,"slugs":11,"linked_documents":13,"lang":14,"alternate_languages":15,"data":16},"avWntRIAAC0AxTLs","sox-concatenate-audio-files",null,"blog_posts","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=avo17REAACkAkm6j&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22avWntRIAAC0AxTLs%22%29+%5D%5D",[],"2026-11-15T22:45:01+0000",[12],"sox-how-to-concatenate-audio-files",[],"en-us",[],{"title":17,"date":23,"description":24,"image":29,"content":39},[18],{"type":19,"text":20,"spans":21,"direction":22},"heading1","SoX: How to Concatenate Audio Files",[],"ltr","2026-11-15",[25],{"type":26,"text":27,"spans":28,"direction":22},"heading2","Learn how to join multiple audio files into one using SoX",[],{"dimensions":30,"alt":6,"copyright":6,"url":33,"id":34,"edit":35},{"width":31,"height":32},1280,720,"https:\u002F\u002Fimages.prismic.io\u002Fmarks-personal-website\u002FAfHHUVDRAQb5RZwx_soxconcataudio.png?auto=format,compress","AfHHUVDRAQb5RZwx",{"x":36,"y":36,"zoom":37,"background":38},0,1,"transparent",[40,44,48,52,55,58,61,64,67,71,74],{"type":41,"text":42,"spans":43,"direction":22},"heading3","Install SoX",[],{"type":45,"text":46,"spans":47,"direction":22},"paragraph","Before we start, make sure you have SoX installed on your computer and the audio files you want to join ready in a folder. If you don't have SoX yet, you can install it with Homebrew:",[],{"type":49,"text":50,"spans":51,"direction":22},"preformatted","brew install sox",[],{"type":41,"text":53,"spans":54,"direction":22},"Join the Files",[],{"type":45,"text":56,"spans":57,"direction":22},"First, open your terminal and navigate to the folder containing your audio files. To join them end to end, just list them in the order you want them, with the name of the new file, like \u003Ccode>output.wav\u003C\u002Fcode>, at the very end:",[],{"type":49,"text":59,"spans":60,"direction":22},"sox file1.wav file2.wav output.wav",[],{"type":45,"text":62,"spans":63,"direction":22},"Just swap \u003Ccode>file1.wav\u003C\u002Fcode> and \u003Ccode>file2.wav\u003C\u002Fcode> with your actual file names. You can list as many files as you like, and SoX works with \u003Ccode>.mp3\u003C\u002Fcode> files too. To join every matching file in a folder, use the \u003Ccode>*\u003C\u002Fcode> wildcard, like \u003Ccode>sox part*.wav combined.wav\u003C\u002Fcode>.",[],{"type":45,"text":65,"spans":66,"direction":22},"For short clips, this finishes almost instantly, and don't worry if you don't see a success message. To make sure everything worked, run \u003Ccode>soxi -d output.wav\u003C\u002Fcode>. The \u003Ccode>-d\u003C\u002Fcode> flag prints just the duration, and it should match the length of all your clips added together. You can also run \u003Ccode>play output.wav\u003C\u002Fcode> to have a listen.",[],{"type":68,"oembed":69},"embed",{"embed_url":70,"type":68},"",{"type":45,"text":72,"spans":73,"direction":22},"All your files need the same sample rate and number of channels. If you get an error like \u003Ccode>Input files must have the same sample-rate\u003C\u002Fcode>, convert the odd one out first with \u003Ccode>sox input.wav -r 44100 output.wav\u003C\u002Fcode>, then join them again.",[],{"type":45,"text":75,"spans":76,"direction":22},"The \u003Ccode>-r\u003C\u002Fcode> flag sets the sample rate, so just change \u003Ccode>44100\u003C\u002Fcode> to match your other files.",[],{"results":78,"page":37,"results_per_page":119,"results_size":119,"total_results_size":120,"total_pages":37},[79,98,100],{"id":80,"uid":81,"url":6,"type":7,"href":82,"tags":83,"first_publication_date":10,"last_publication_date":10,"slugs":84,"linked_documents":86,"lang":14,"alternate_languages":87,"data":88},"avWfjhIAACoAxSRa","sox-change-audio-volume","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=avo17REAACkAkm6j&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22avWfjhIAACoAxSRa%22%29+%5D%5D",[],[85],"sox-how-to-change-audio-volume",[],[],{"image":89,"title":94},{"dimensions":90,"alt":6,"copyright":6,"url":91,"id":92,"edit":93},{"width":31,"height":32},"https:\u002F\u002Fimages.prismic.io\u002Fmarks-personal-website\u002FmJDrXryuaCVFhGHg_soxlouderaudio.png?auto=format,compress","mJDrXryuaCVFhGHg",{"x":36,"y":36,"zoom":37,"background":38},[95],{"type":19,"text":96,"spans":97,"direction":22},"SoX: How to Change Audio Volume",[],{"id":4,"uid":5,"url":6,"type":7,"href":8,"tags":9,"first_publication_date":10,"last_publication_date":10,"slugs":11,"linked_documents":13,"lang":14,"alternate_languages":15,"data":99},{"image":29,"title":17},{"id":101,"uid":102,"url":6,"type":7,"href":103,"tags":104,"first_publication_date":10,"last_publication_date":10,"slugs":105,"linked_documents":107,"lang":14,"alternate_languages":108,"data":109},"avYaDhEAACkAgIs6","sox-generate-white-noise","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=avo17REAACkAkm6j&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22avYaDhEAACkAgIs6%22%29+%5D%5D",[],[106],"sox-how-to-generate-white-noise",[],[],{"image":110,"title":115},{"dimensions":111,"alt":6,"copyright":6,"url":112,"id":113,"edit":114},{"width":31,"height":32},"https:\u002F\u002Fimages.prismic.io\u002Fmarks-personal-website\u002FEqoOaUiO182qEeBj_soxwhitenoise.png?auto=format,compress","EqoOaUiO182qEeBj",{"x":36,"y":36,"zoom":37,"background":38},[116],{"type":19,"text":117,"spans":118,"direction":22},"SoX: How to Generate White Noise",[],3,54,1794782724072]