[{"data":1,"prerenderedAt":133},["ShallowReactive",2],{"blog-post-sox-fix-unsupported-audio-format":3,"recent-posts":89},{"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},"avh2BxEAACcAj-6H","sox-fix-unsupported-audio-format",null,"blog_posts","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=av4qlxYAACwAwP4a&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22avh2BxEAACcAj-6H%22%29+%5D%5D",[],"2026-11-18T22:45:43+0000",[12],"sox-how-to-fix-unsupported-audio-format",[],"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 Fix Unsupported Audio Format",[],"ltr","2026-11-18",[25],{"type":26,"text":27,"spans":28,"direction":22},"heading2","Learn how to fix the SoX unsupported audio format error by converting with FFmpeg",[],{"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\u002FWi9VtwU58Nuu2b8Q_sox-fix-unsupported-audio-format.png?auto=format,compress","Wi9VtwU58Nuu2b8Q",{"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,86],{"type":41,"text":42,"spans":43,"direction":22},"heading3","Install SoX and FFmpeg",[],{"type":45,"text":46,"spans":47,"direction":22},"paragraph","Before we start, make sure you have Homebrew installed on your computer and an M4A file ready in a folder. Install both tools with this command:",[],{"type":49,"text":50,"spans":51,"direction":22},"preformatted","brew install sox ffmpeg",[],{"type":41,"text":53,"spans":54,"direction":22},"Why the Error Happens",[],{"type":45,"text":56,"spans":57,"direction":22},"First, open your terminal and navigate to the folder that has your audio file. If you try to process an M4A file with SoX, like this:",[],{"type":49,"text":59,"spans":60,"direction":22},"sox input.m4a output.wav gain -6",[],{"type":45,"text":62,"spans":63,"direction":22},"you'll get this error: \u003Ccode>sox FAIL formats: no handler for file extension 'm4a'\u003C\u002Fcode>. That just means this version of SoX can't read that format. It handles formats like \u003Ccode>.wav\u003C\u002Fcode>, \u003Ccode>.mp3\u003C\u002Fcode> and \u003Ccode>.flac\u003C\u002Fcode>, but not \u003Ccode>.m4a\u003C\u002Fcode> or \u003Ccode>.aac\u003C\u002Fcode>.",[],{"type":41,"text":65,"spans":66,"direction":22},"Convert to WAV First",[],{"type":45,"text":68,"spans":69,"direction":22},"To fix it, convert the file to WAV with FFmpeg:",[],{"type":49,"text":71,"spans":72,"direction":22},"ffmpeg -v error -i input.m4a input.wav",[],{"type":45,"text":74,"spans":75,"direction":22},"Just remember to replace \u003Ccode>input.m4a\u003C\u002Fcode> with your actual filename. The \u003Ccode>-i\u003C\u002Fcode> flag sets the input file, and \u003Ccode>-v error\u003C\u002Fcode> keeps FFmpeg quiet, so you won't see any output when it works. Now run your SoX command again, this time on the new WAV file:",[],{"type":49,"text":77,"spans":78,"direction":22},"sox input.wav output.wav gain -6",[],{"type":45,"text":80,"spans":81,"direction":22},"To make sure everything worked, run \u003Ccode>soxi output.wav\u003C\u002Fcode> to see the details of your new file.",[],{"type":83,"oembed":84},"embed",{"embed_url":85,"type":83},"",{"type":45,"text":87,"spans":88,"direction":22},"If you're ever unsure what a file really is, run \u003Ccode>file input.m4a\u003C\u002Fcode>. It prints the real format, even when the extension says something else. You can also pipe the audio straight into SoX with \u003Ccode>ffmpeg -v error -i input.m4a -f wav - | sox -t wav - output.wav\u003C\u002Fcode>, though SoX may print a harmless \u003Ccode>Premature EOF\u003C\u002Fcode> warning.",[],{"results":90,"page":37,"results_per_page":131,"results_size":131,"total_results_size":132,"total_pages":37},[91,110,129],{"id":92,"uid":93,"url":6,"type":7,"href":94,"tags":95,"first_publication_date":10,"last_publication_date":10,"slugs":96,"linked_documents":98,"lang":14,"alternate_languages":99,"data":100},"avh2CREAACsAj-6V","pandoc-convert-pdf-to-markdown","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=av4qlxYAACwAwP4a&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22avh2CREAACsAj-6V%22%29+%5D%5D",[],[97],"pandoc-how-to-convert-pdf-to-markdown",[],[],{"image":101,"title":107},{"dimensions":102,"alt":103,"copyright":6,"url":104,"id":105,"edit":106},{"width":31,"height":32},"Pandoc: How to Convert PDF to Markdown","https:\u002F\u002Fimages.prismic.io\u002Fmarks-personal-website\u002F-p25dHHmH8oerC6a_pandoc-convert-pdf-to-markdown.png?auto=format,compress","-p25dHHmH8oerC6a",{"x":36,"y":36,"zoom":37,"background":38},[108],{"type":19,"text":103,"spans":109,"direction":22},[],{"id":111,"uid":112,"url":6,"type":7,"href":113,"tags":114,"first_publication_date":10,"last_publication_date":10,"slugs":115,"linked_documents":117,"lang":14,"alternate_languages":118,"data":119},"avh2BREAACsAj-57","sox-trim-audio","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=av4qlxYAACwAwP4a&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22avh2BREAACsAj-57%22%29+%5D%5D",[],[116],"sox-how-to-trim-audio",[],[],{"image":120,"title":126},{"dimensions":121,"alt":122,"copyright":6,"url":123,"id":124,"edit":125},{"width":31,"height":32},"SoX: How to Trim Audio","https:\u002F\u002Fimages.prismic.io\u002Fmarks-personal-website\u002FuxvNV-Rsgm5-5KyY_sox-trim-audio.png?auto=format,compress","uxvNV-Rsgm5-5KyY",{"x":36,"y":36,"zoom":37,"background":38},[127],{"type":19,"text":122,"spans":128,"direction":22},[],{"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":130},{"image":29,"title":17},3,69,1795041965066]