[{"data":1,"prerenderedAt":121},["ShallowReactive",2],{"blog-post-sox-change-bit-depth":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},"avg1XREAACsAj4eS","sox-change-bit-depth",null,"blog_posts","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=avzZABIAACgAeKzX&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22avg1XREAACsAj4eS%22%29+%5D%5D",[],"2026-11-17T22:45:19+0000",[12],"sox-how-to-change-bit-depth",[],"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 Change Bit Depth",[],"ltr","2026-11-17",[25],{"type":26,"text":27,"spans":28,"direction":22},"heading2","Learn how to change the bit depth of an audio file using SoX",[],{"dimensions":30,"alt":20,"copyright":6,"url":33,"id":34,"edit":35},{"width":31,"height":32},1280,720,"https:\u002F\u002Fimages.prismic.io\u002Fmarks-personal-website\u002FGm9ND5avh6VMrQoP_sox-change-bit-depth.png?auto=format,compress","Gm9ND5avh6VMrQoP",{"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},"paragraph","Before we start, make sure you have SoX installed on your computer and your audio file ready in a folder. On a Mac, you can install it with Homebrew:",[],{"type":45,"text":46,"spans":47,"direction":22},"preformatted","brew install sox",[],{"type":49,"text":50,"spans":51,"direction":22},"heading3","Change the Bit Depth",[],{"type":41,"text":53,"spans":54,"direction":22},"First, open your terminal and navigate to the folder with your audio file using \u003Ccode>cd\u003C\u002Fcode>. To see the current bit depth, run \u003Ccode>soxi -b input.wav\u003C\u002Fcode>. To bring a 24-bit file down to 16-bit, run this command:",[],{"type":45,"text":56,"spans":57,"direction":22},"sox input.wav -b 16 output.wav",[],{"type":41,"text":59,"spans":60,"direction":22},"Just remember to replace \u003Ccode>input.wav\u003C\u002Fcode> with your actual file name and \u003Ccode>output.wav\u003C\u002Fcode> with the name you want for the new file. The \u003Ccode>-b 16\u003C\u002Fcode> flag sets the bit depth of the output. You can swap \u003Ccode>16\u003C\u002Fcode> for \u003Ccode>8\u003C\u002Fcode>, \u003Ccode>24\u003C\u002Fcode> or \u003Ccode>32\u003C\u002Fcode>. Place it right before the output file name, because flags before the input file describe the input, while flags before the output file define the output.",[],{"type":41,"text":62,"spans":63,"direction":22},"For most files, this finishes almost instantly, and don't worry if you don't see a success message. When you reduce the bit depth, SoX adds dither automatically, so the result still sounds clean.",[],{"type":41,"text":65,"spans":66,"direction":22},"To make sure everything worked, run \u003Ccode>soxi -b output.wav\u003C\u002Fcode>. It should print \u003Ccode>16\u003C\u002Fcode>.",[],{"type":68,"oembed":69},"embed",{"embed_url":70,"type":68},"",{"type":41,"text":72,"spans":73,"direction":22},"If you also want to change the sample rate, just add \u003Ccode>-r\u003C\u002Fcode> and the new rate in the same command:",[],{"type":45,"text":75,"spans":76,"direction":22},"sox input.wav -b 16 -r 44100 output.wav",[],{"results":78,"page":37,"results_per_page":119,"results_size":119,"total_results_size":120,"total_pages":37},[79,81,100],{"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":80},{"image":29,"title":17},{"id":82,"uid":83,"url":6,"type":7,"href":84,"tags":85,"first_publication_date":10,"last_publication_date":10,"slugs":86,"linked_documents":88,"lang":14,"alternate_languages":89,"data":90},"avg1XxEAACcAj4eg","sox-reverse-audio","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=avzZABIAACgAeKzX&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22avg1XxEAACcAj4eg%22%29+%5D%5D",[],[87],"sox-how-to-reverse-audio",[],[],{"image":91,"title":97},{"dimensions":92,"alt":93,"copyright":6,"url":94,"id":95,"edit":96},{"width":31,"height":32},"SoX: How to Reverse Audio","https:\u002F\u002Fimages.prismic.io\u002Fmarks-personal-website\u002F6yWWTbolMOE4a3JL_sox-reverse-audio.png?auto=format,compress","6yWWTbolMOE4a3JL",{"x":36,"y":36,"zoom":37,"background":38},[98],{"type":19,"text":93,"spans":99,"direction":22},[],{"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},"avg1XBEAACwAj4eL","sox-convert-stereo-to-mono","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=avzZABIAACgAeKzX&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22avg1XBEAACwAj4eL%22%29+%5D%5D",[],[106],"sox-how-to-convert-stereo-to-mono",[],[],{"image":110,"title":116},{"dimensions":111,"alt":112,"copyright":6,"url":113,"id":114,"edit":115},{"width":31,"height":32},"SoX: How to Convert Stereo to Mono","https:\u002F\u002Fimages.prismic.io\u002Fmarks-personal-website\u002FPgqFJaqMdDkYQkE6_sox-convert-stereo-to-mono.png?auto=format,compress","PgqFJaqMdDkYQkE6",{"x":36,"y":36,"zoom":37,"background":38},[117],{"type":19,"text":112,"spans":118,"direction":22},[],3,64,1794955544421]