[{"data":1,"prerenderedAt":154},["ShallowReactive",2],{"blog-post-sox-convert-wav-to-mp3":3,"recent-posts":92},{"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},"avYmwBEAACcAgKDe","sox-convert-wav-to-mp3",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+%22avYmwBEAACcAgKDe%22%29+%5D%5D",[],"2026-11-16T22:45:01+0000",[12],"sox-how-to-convert-wav-to-mp3",[],"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 Convert WAV to MP3",[],"ltr","2026-11-16",[25],{"type":26,"text":27,"spans":28,"direction":22},"heading2","Learn how to convert a WAV file to an MP3 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\u002FAjDiIdJBZ5Es47iI_soxwavtomp3.png?auto=format,compress","AjDiIdJBZ5Es47iI",{"x":36,"y":36,"zoom":37,"background":38},0,1,"transparent",[40,44,48,52,55,58,61,64,67,70,73,76,79,82,85,89],{"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 your WAV file ready in a folder. If you don't have it yet, you can install SoX with Homebrew:",[],{"type":49,"text":50,"spans":51,"direction":22},"preformatted","brew install sox",[],{"type":41,"text":53,"spans":54,"direction":22},"Convert the WAV to MP3",[],{"type":45,"text":56,"spans":57,"direction":22},"First, open your terminal and navigate to the folder containing your WAV file. To convert it to an MP3, run this command:",[],{"type":49,"text":59,"spans":60,"direction":22},"sox input.wav output.mp3",[],{"type":45,"text":62,"spans":63,"direction":22},"Just swap \u003Ccode>input.wav\u003C\u002Fcode> with the name of your WAV file, and \u003Ccode>output.mp3\u003C\u002Fcode> with the name you want for the new file. That's all it takes.",[],{"type":45,"text":65,"spans":66,"direction":22},"For a short clip, this finishes almost instantly, and don't worry if you don't see a success message, SoX stays quiet when everything works. To check the new file, run \u003Ccode>open output.mp3\u003C\u002Fcode>.",[],{"type":41,"text":68,"spans":69,"direction":22},"Set the Bitrate",[],{"type":45,"text":71,"spans":72,"direction":22},"Want more quality? Add the \u003Ccode>-C\u003C\u002Fcode> flag and set the bitrate in kbps:",[],{"type":49,"text":74,"spans":75,"direction":22},"sox input.wav -C 320 output.mp3",[],{"type":45,"text":77,"spans":78,"direction":22},"The \u003Ccode>320\u003C\u002Fcode> value gives you high quality 320 kbps audio. Use \u003Ccode>256\u003C\u002Fcode> or \u003Ccode>192\u003C\u002Fcode> instead if you'd rather have smaller files.",[],{"type":41,"text":80,"spans":81,"direction":22},"Fix the No Handler Error",[],{"type":45,"text":83,"spans":84,"direction":22},"If you ever see \u003Ccode>no handler for file extension 'mp3'\u003C\u002Fcode>, your SoX build is missing MP3 support. Just install the \u003Ccode>LAME\u003C\u002Fcode> library with \u003Ccode>brew install lame\u003C\u002Fcode> and run the command again.",[],{"type":86,"oembed":87},"embed",{"embed_url":88,"type":86},"",{"type":45,"text":90,"spans":91,"direction":22},"Your original \u003Ccode>input.wav\u003C\u002Fcode> is never modified, so you can always re-run the command with a different \u003Ccode>-C\u003C\u002Fcode> value to compare quality.",[],{"results":93,"page":37,"results_per_page":152,"results_size":152,"total_results_size":153,"total_pages":37},[94,114,133],{"id":95,"uid":96,"url":6,"type":7,"href":97,"tags":98,"first_publication_date":99,"last_publication_date":99,"slugs":100,"linked_documents":102,"lang":14,"alternate_languages":103,"data":104},"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",[101],"sox-how-to-change-bit-depth",[],[],{"image":105,"title":111},{"dimensions":106,"alt":107,"copyright":6,"url":108,"id":109,"edit":110},{"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},[112],{"type":19,"text":107,"spans":113,"direction":22},[],{"id":115,"uid":116,"url":6,"type":7,"href":117,"tags":118,"first_publication_date":99,"last_publication_date":99,"slugs":119,"linked_documents":121,"lang":14,"alternate_languages":122,"data":123},"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",[],[120],"sox-how-to-reverse-audio",[],[],{"image":124,"title":130},{"dimensions":125,"alt":126,"copyright":6,"url":127,"id":128,"edit":129},{"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},[131],{"type":19,"text":126,"spans":132,"direction":22},[],{"id":134,"uid":135,"url":6,"type":7,"href":136,"tags":137,"first_publication_date":99,"last_publication_date":99,"slugs":138,"linked_documents":140,"lang":14,"alternate_languages":141,"data":142},"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",[],[139],"sox-how-to-convert-stereo-to-mono",[],[],{"image":143,"title":149},{"dimensions":144,"alt":145,"copyright":6,"url":146,"id":147,"edit":148},{"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},[150],{"type":19,"text":145,"spans":151,"direction":22},[],3,64,1794955544490]