[{"data":1,"prerenderedAt":121},["ShallowReactive",2],{"blog-post-sox-fade-in-fade-out-audio":3,"recent-posts":74},{"id":4,"uid":5,"url":6,"type":7,"href":8,"tags":9,"first_publication_date":10,"last_publication_date":11,"slugs":12,"linked_documents":14,"lang":15,"alternate_languages":16,"data":17},"avV_qhIAACgAxOVE","sox-fade-in-fade-out-audio",null,"blog_posts","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=avZBfxEAACkAgMgi&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22avV_qhIAACgAxOVE%22%29+%5D%5D",[],"2026-11-12T09:09:07+0000","2026-11-12T22:45:18+0000",[13],"sox-how-to-add-fade-in--fade-out-to-audio",[],"en-us",[],{"title":18,"date":24,"description":25,"image":30,"content":40},[19],{"type":20,"text":21,"spans":22,"direction":23},"heading1","SoX: How to Add Fade-In & Fade-Out to Audio",[],"ltr","2026-11-12",[26],{"type":27,"text":28,"spans":29,"direction":23},"heading2","Add a smooth five-second fade-in and fade-out to an audio file using SoX",[],{"dimensions":31,"alt":6,"copyright":6,"url":34,"id":35,"edit":36},{"width":32,"height":33},1376,768,"https:\u002F\u002Fimages.prismic.io\u002Fmarks-personal-website\u002Fh-qeKr1k78EgiZok_SoX-HowtoAddFade-InandFade-OuttoAudio.jpg?auto=format,compress","h-qeKr1k78EgiZok",{"x":37,"y":37,"zoom":38,"background":39},0,1,"transparent",[41,45,48,51,55,58,61,64,67,71],{"type":42,"text":43,"spans":44,"direction":23},"paragraph","Before we start, make sure you have SoX installed on your computer and an audio file ready to edit, like a WAV file.",[],{"type":42,"text":46,"spans":47,"direction":23},"First, open your terminal and navigate to the folder where your audio file is saved using the \u003Ccode>cd\u003C\u002Fcode> command.",[],{"type":42,"text":49,"spans":50,"direction":23},"Next, run this command to apply a five-second fade to the beginning and end of your track:",[],{"type":52,"text":53,"spans":54,"direction":23},"preformatted","sox input.wav output.wav fade h 5 0 5",[],{"type":42,"text":56,"spans":57,"direction":23},"Just swap \u003Ccode>input.wav\u003C\u002Fcode> with your actual file name and \u003Ccode>output.wav\u003C\u002Fcode> with whatever you want to name the finished file.",[],{"type":42,"text":59,"spans":60,"direction":23},"In this command, the \u003Ccode>h\u003C\u002Fcode> gives you a smooth, natural-sounding curve, and the \u003Ccode>0\u003C\u002Fcode> tells SoX to automatically find the end of your audio so you don't have to look up its exact length.",[],{"type":42,"text":62,"spans":63,"direction":23},"Once you hit enter, SoX will process the file (this happens almost instantly for short clips), while longer recordings might take a few seconds.",[],{"type":42,"text":65,"spans":66,"direction":23},"To confirm everything sounds right, test your new file directly in the terminal by running \u003Ccode>play output.wav\u003C\u002Fcode>, or open it in your regular media player to hear the transitions.",[],{"type":68,"oembed":69},"embed",{"embed_url":70,"type":68},"",{"type":42,"text":72,"spans":73,"direction":23},"If your audio clip is shorter than ten seconds, lower those \u003Ccode>5\u003C\u002Fcode> values so the fade-in and fade-out don't overlap in the middle.",[],{"results":75,"page":38,"results_per_page":119,"results_size":119,"total_results_size":120,"total_pages":38},[76,78,99],{"id":4,"uid":5,"url":6,"type":7,"href":8,"tags":9,"first_publication_date":10,"last_publication_date":11,"slugs":12,"linked_documents":14,"lang":15,"alternate_languages":16,"data":77},{"image":30,"title":18},{"id":79,"uid":80,"url":6,"type":7,"href":81,"tags":82,"first_publication_date":11,"last_publication_date":11,"slugs":83,"linked_documents":85,"lang":15,"alternate_languages":86,"data":87},"avWNIhIAAC4AxQHE","sox-change-audio-pitch","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=avZBfxEAACkAgMgi&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22avWNIhIAAC4AxQHE%22%29+%5D%5D",[],[84],"sox-how-to-change-audio-pitch",[],[],{"image":88,"title":95},{"dimensions":89,"alt":6,"copyright":6,"url":92,"id":93,"edit":94},{"width":90,"height":91},1280,720,"https:\u002F\u002Fimages.prismic.io\u002Fmarks-personal-website\u002FdFA9zl5K1bmhlk0e_soxchangepitch.png?auto=format,compress","dFA9zl5K1bmhlk0e",{"x":37,"y":37,"zoom":38,"background":39},[96],{"type":20,"text":97,"spans":98,"direction":23},"SoX: How to Change Audio Pitch",[],{"id":100,"uid":101,"url":6,"type":7,"href":102,"tags":103,"first_publication_date":104,"last_publication_date":104,"slugs":105,"linked_documents":107,"lang":15,"alternate_languages":108,"data":109},"avV8OhIAACsAxN6U","pandoc-convert-markdown-to-pdf","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=avZBfxEAACkAgMgi&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22avV8OhIAACsAxN6U%22%29+%5D%5D",[],"2026-11-12T08:46:44+0000",[106],"pandoc-how-to-convert-markdown-to-pdf",[],[],{"image":110,"title":115},{"dimensions":111,"alt":6,"copyright":6,"url":112,"id":113,"edit":114},{"width":32,"height":33},"https:\u002F\u002Fimages.prismic.io\u002Fmarks-personal-website\u002FymFw9A0mug5ghXUK_pandocmarkdowntopdf.jpg?auto=format,compress","ymFw9A0mug5ghXUK",{"x":37,"y":37,"zoom":38,"background":39},[116],{"type":20,"text":117,"spans":118,"direction":23},"Pandoc: How to Convert Markdown to PDF",[],3,47,1794523541182]