[{"data":1,"prerenderedAt":148},["ShallowReactive",2],{"blog-post-sox-remove-background-noise":3,"recent-posts":86},{"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},"avdWqREAACgAjksx","sox-remove-background-noise",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+%22avdWqREAACgAjksx%22%29+%5D%5D",[],"2026-11-16T22:45:01+0000",[12],"sox-how-to-remove-background-noise",[],"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 Remove Background Noise",[],"ltr","2026-11-16",[25],{"type":26,"text":27,"spans":28,"direction":22},"heading2","Learn how to remove background noise from audio 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\u002FrMUXRV0-uAmAUaXS_soxbackgroundnoise.png?auto=format,compress","rMUXRV0-uAmAUaXS",{"x":36,"y":36,"zoom":37,"background":38},0,1,"transparent",[40,44,48,52,55,58,61,64,67,70,73,76,80,83],{"type":41,"text":42,"spans":43,"direction":22},"paragraph","Before we start, make sure you have SoX installed on your computer and your noisy 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","Create a Noise Profile",[],{"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>. SoX needs a sample of just the background noise, so pick a second or so at the start of your file with no music or voice in it. To create the noise profile, run this command:",[],{"type":45,"text":56,"spans":57,"direction":22},"sox input.wav -n trim 0 1 noiseprof noise.prof",[],{"type":41,"text":59,"spans":60,"direction":22},"Here, \u003Ccode>-n\u003C\u002Fcode> tells SoX not to write an audio file, \u003Ccode>trim 0 1\u003C\u002Fcode> grabs the first second, and \u003Ccode>noiseprof\u003C\u002Fcode> saves its noise fingerprint to \u003Ccode>noise.prof\u003C\u002Fcode>. Just make sure that sample has no music or speech in it, or SoX will remove those sounds from your audio too.",[],{"type":49,"text":62,"spans":63,"direction":22},"Remove the Noise",[],{"type":41,"text":65,"spans":66,"direction":22},"Now apply the profile to the whole file with the \u003Ccode>noisered\u003C\u002Fcode> effect:",[],{"type":45,"text":68,"spans":69,"direction":22},"sox input.wav output.wav noisered noise.prof 0.21",[],{"type":41,"text":71,"spans":72,"direction":22},"Just remember to replace \u003Ccode>input.wav\u003C\u002Fcode> with your actual file name. The \u003Ccode>0.21\u003C\u002Fcode> value sets how strong the reduction is. Stay between \u003Ccode>0.2\u003C\u002Fcode> and \u003Ccode>0.3\u003C\u002Fcode>, because going higher can make the audio sound metallic. For a short clip, this finishes almost instantly, and don't worry if you don't see a success message.",[],{"type":41,"text":74,"spans":75,"direction":22},"To make sure everything worked, run \u003Ccode>play output.wav\u003C\u002Fcode> to listen to the cleaned file right from your terminal.",[],{"type":77,"oembed":78},"embed",{"embed_url":79,"type":77},"",{"type":41,"text":81,"spans":82,"direction":22},"If your audio also has low rumble, like an air conditioner or traffic, just add \u003Ccode>highpass 100\u003C\u002Fcode> before \u003Ccode>noisered\u003C\u002Fcode> to cut the low frequencies too:",[],{"type":45,"text":84,"spans":85,"direction":22},"sox input.wav output.wav highpass 100 noisered noise.prof 0.21",[],{"results":87,"page":37,"results_per_page":146,"results_size":146,"total_results_size":147,"total_pages":37},[88,108,127],{"id":89,"uid":90,"url":6,"type":7,"href":91,"tags":92,"first_publication_date":93,"last_publication_date":93,"slugs":94,"linked_documents":96,"lang":14,"alternate_languages":97,"data":98},"avg1XREAACsAj4eS","sox-change-bit-depth","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",[95],"sox-how-to-change-bit-depth",[],[],{"image":99,"title":105},{"dimensions":100,"alt":101,"copyright":6,"url":102,"id":103,"edit":104},{"width":31,"height":32},"SoX: How to Change Bit Depth","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},[106],{"type":19,"text":101,"spans":107,"direction":22},[],{"id":109,"uid":110,"url":6,"type":7,"href":111,"tags":112,"first_publication_date":93,"last_publication_date":93,"slugs":113,"linked_documents":115,"lang":14,"alternate_languages":116,"data":117},"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",[],[114],"sox-how-to-reverse-audio",[],[],{"image":118,"title":124},{"dimensions":119,"alt":120,"copyright":6,"url":121,"id":122,"edit":123},{"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},[125],{"type":19,"text":120,"spans":126,"direction":22},[],{"id":128,"uid":129,"url":6,"type":7,"href":130,"tags":131,"first_publication_date":93,"last_publication_date":93,"slugs":132,"linked_documents":134,"lang":14,"alternate_languages":135,"data":136},"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",[],[133],"sox-how-to-convert-stereo-to-mono",[],[],{"image":137,"title":143},{"dimensions":138,"alt":139,"copyright":6,"url":140,"id":141,"edit":142},{"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},[144],{"type":19,"text":139,"spans":145,"direction":22},[],3,64,1794955544570]