[{"data":1,"prerenderedAt":153},["ShallowReactive",2],{"blog-post-sox-add-delay-to-audio":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},"avh2BhEAACwAj-6B","sox-add-delay-to-audio",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+%22avh2BhEAACwAj-6B%22%29+%5D%5D",[],"2026-11-18T22:45:43+0000",[12],"sox-how-to-add-a-delay-to-audio",[],"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 Add a Delay to Audio",[],"ltr","2026-11-18",[25],{"type":26,"text":27,"spans":28,"direction":22},"heading2","Learn how to add a delay, silence or an echo to audio 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\u002FP_eaZaIH3W-yYRXw_sox-add-delay-to-audio.png?auto=format,compress","P_eaZaIH3W-yYRXw",{"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 Homebrew installed on your computer and an audio file ready in a folder. Install SoX with this command:",[],{"type":49,"text":50,"spans":51,"direction":22},"preformatted","brew install sox",[],{"type":41,"text":53,"spans":54,"direction":22},"Add a Delay",[],{"type":45,"text":56,"spans":57,"direction":22},"First, open your terminal and navigate to the folder that has your audio file. To push your whole track back in time, run this command:",[],{"type":49,"text":59,"spans":60,"direction":22},"sox input.wav output.wav delay 2 2",[],{"type":45,"text":62,"spans":63,"direction":22},"Just remember to replace \u003Ccode>input.wav\u003C\u002Fcode> with your actual filename, and \u003Ccode>output.wav\u003C\u002Fcode> with the name you want for the new file. The \u003Ccode>delay\u003C\u002Fcode> effect needs one time in seconds for each channel, so a stereo file needs two numbers. Here, \u003Ccode>2 2\u003C\u002Fcode> delays both channels by two seconds.",[],{"type":45,"text":65,"spans":66,"direction":22},"This finishes almost instantly. To make sure everything worked, run \u003Ccode>soxi -d output.wav\u003C\u002Fcode>. The \u003Ccode>-d\u003C\u002Fcode> flag prints just the duration, which should be two seconds longer than your original file.",[],{"type":41,"text":68,"spans":69,"direction":22},"Pad and Echo",[],{"type":45,"text":71,"spans":72,"direction":22},"If you want silence added no matter how many channels the file has, use the \u003Ccode>pad\u003C\u002Fcode> effect instead:",[],{"type":49,"text":74,"spans":75,"direction":22},"sox input.wav output.wav pad 3",[],{"type":45,"text":77,"spans":78,"direction":22},"That adds three seconds of silence at the start. And if you want a real echo, where the sound repeats and fades out, use the \u003Ccode>echo\u003C\u002Fcode> effect:",[],{"type":49,"text":80,"spans":81,"direction":22},"sox input.wav output.wav echo 0.8 0.7 500 0.4",[],{"type":45,"text":83,"spans":84,"direction":22},"The \u003Ccode>echo\u003C\u002Fcode> effect takes the input gain, the output gain, a delay in milliseconds and a decay. So \u003Ccode>500 0.4\u003C\u002Fcode> gives you one echo, five hundred milliseconds after the original, at forty percent volume.",[],{"type":86,"oembed":87},"embed",{"embed_url":88,"type":86},"",{"type":45,"text":90,"spans":91,"direction":22},"To layer more echoes, just add extra delay and decay pairs, like \u003Ccode>echo 0.8 0.7 300 0.4 600 0.2\u003C\u002Fcode>.",[],{"results":93,"page":37,"results_per_page":151,"results_size":151,"total_results_size":152,"total_pages":37},[94,113,132],{"id":95,"uid":96,"url":6,"type":7,"href":97,"tags":98,"first_publication_date":10,"last_publication_date":10,"slugs":99,"linked_documents":101,"lang":14,"alternate_languages":102,"data":103},"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",[],[100],"pandoc-how-to-convert-pdf-to-markdown",[],[],{"image":104,"title":110},{"dimensions":105,"alt":106,"copyright":6,"url":107,"id":108,"edit":109},{"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},[111],{"type":19,"text":106,"spans":112,"direction":22},[],{"id":114,"uid":115,"url":6,"type":7,"href":116,"tags":117,"first_publication_date":10,"last_publication_date":10,"slugs":118,"linked_documents":120,"lang":14,"alternate_languages":121,"data":122},"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",[],[119],"sox-how-to-trim-audio",[],[],{"image":123,"title":129},{"dimensions":124,"alt":125,"copyright":6,"url":126,"id":127,"edit":128},{"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},[130],{"type":19,"text":125,"spans":131,"direction":22},[],{"id":133,"uid":134,"url":6,"type":7,"href":135,"tags":136,"first_publication_date":10,"last_publication_date":10,"slugs":137,"linked_documents":139,"lang":14,"alternate_languages":140,"data":141},"avh2BxEAACcAj-6H","sox-fix-unsupported-audio-format","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",[],[138],"sox-how-to-fix-unsupported-audio-format",[],[],{"image":142,"title":148},{"dimensions":143,"alt":144,"copyright":6,"url":145,"id":146,"edit":147},{"width":31,"height":32},"SoX: How to Fix Unsupported Audio Format","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},[149],{"type":19,"text":144,"spans":150,"direction":22},[],3,69,1795041965066]