[{"data":1,"prerenderedAt":124},["ShallowReactive",2],{"blog-post-sox-change-audio-sample-rate":3,"recent-posts":76},{"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},"avWQnBIAACkAxQkN","sox-change-audio-sample-rate",null,"blog_posts","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=aveTFhEAACkAjqVI&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22avWQnBIAACkAxQkN%22%29+%5D%5D",[],"2026-11-13T22:45:41+0000",[12],"sox-how-to-change-audio-sample-rate",[],"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 Change Audio Sample Rate",[],"ltr","2026-11-13",[25],{"type":26,"text":27,"spans":28,"direction":22},"heading2","Check and change the sample rate of an audio file 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\u002FILabK-ApIRqHP1dD_samplerate.png?auto=format,compress","ILabK-ApIRqHP1dD",{"x":36,"y":36,"zoom":37,"background":38},0,1,"transparent",[40,44,47,50,54,57,60,63,66,69,73],{"type":41,"text":42,"spans":43,"direction":22},"paragraph","Before we start, make sure you have SoX installed on your computer and open your terminal in the folder where your audio file is saved.",[],{"type":41,"text":45,"spans":46,"direction":22},"First, let's check the current sample rate of your file. Type \u003Ccode>soxi -r input.wav\u003C\u002Fcode> and press Enter, making sure to replace \u003Ccode>input.wav\u003C\u002Fcode> with your actual file name. The terminal will print a number like \u003Ccode>44100\u003C\u002Fcode>, which is your current sample rate in Hertz.",[],{"type":41,"text":48,"spans":49,"direction":22},"Next, to change the sample rate, run:",[],{"type":51,"text":52,"spans":53,"direction":22},"preformatted","sox input.wav -r 48000 output.wav",[],{"type":41,"text":55,"spans":56,"direction":22},"Here, the \u003Ccode>-r 48000\u003C\u002Fcode> option sets your new rate to 48,000 Hertz, and \u003Ccode>output.wav\u003C\u002Fcode> is the name of the new file you are creating.",[],{"type":41,"text":58,"spans":59,"direction":22},"If you want the cleanest possible audio quality during conversion, you can add an optional high-quality flag at the end by running:",[],{"type":51,"text":61,"spans":62,"direction":22},"sox input.wav -r 48000 output.wav rate -v",[],{"type":41,"text":64,"spans":65,"direction":22},"For short clips, this finishes almost instantly, though larger files using the high-quality flag may take a few seconds to process before your terminal prompt returns.",[],{"type":41,"text":67,"spans":68,"direction":22},"To confirm everything worked, test your new file by running \u003Ccode>soxi -r output.wav\u003C\u002Fcode>. You should see \u003Ccode>48000\u003C\u002Fcode> appear right on your screen.",[],{"type":70,"oembed":71},"embed",{"embed_url":72,"type":70},"",{"type":41,"text":74,"spans":75,"direction":22},"Always save your converted audio under a new file name so you never accidentally overwrite your original recording.",[],{"results":77,"page":37,"results_per_page":122,"results_size":122,"total_results_size":123,"total_pages":37},[78,97,99],{"id":79,"uid":80,"url":6,"type":7,"href":81,"tags":82,"first_publication_date":10,"last_publication_date":10,"slugs":83,"linked_documents":85,"lang":14,"alternate_languages":86,"data":87},"avWO-RIAACoAxQUq","sox-create-audio-spectrogram","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=aveTFhEAACkAjqVI&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22avWO-RIAACoAxQUq%22%29+%5D%5D",[],[84],"sox-how-to-create-an-audio-spectrogram",[],[],{"image":88,"title":93},{"dimensions":89,"alt":6,"copyright":6,"url":90,"id":91,"edit":92},{"width":31,"height":32},"https:\u002F\u002Fimages.prismic.io\u002Fmarks-personal-website\u002Fxz2bHoi8Kxbt2U3m_soxspectrogramthumb.jpg?auto=format,compress","xz2bHoi8Kxbt2U3m",{"x":36,"y":36,"zoom":37,"background":38},[94],{"type":19,"text":95,"spans":96,"direction":22},"SoX: How to Create an Audio Spectrogram",[],{"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":98},{"image":29,"title":17},{"id":100,"uid":101,"url":6,"type":7,"href":102,"tags":103,"first_publication_date":104,"last_publication_date":105,"slugs":106,"linked_documents":108,"lang":14,"alternate_languages":109,"data":110},"avV_qhIAACgAxOVE","sox-fade-in-fade-out-audio","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=aveTFhEAACkAjqVI&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22avV_qhIAACgAxOVE%22%29+%5D%5D",[],"2026-11-12T09:09:07+0000","2026-11-13T18:44:52+0000",[107],"sox-how-to-add-fade-in--fade-out-to-audio",[],[],{"image":111,"title":118},{"dimensions":112,"alt":6,"copyright":6,"url":115,"id":116,"edit":117},{"width":113,"height":114},1376,768,"https:\u002F\u002Fimages.prismic.io\u002Fmarks-personal-website\u002Fh-qeKr1k78EgiZok_SoX-HowtoAddFade-InandFade-OuttoAudio.jpg?auto=format,compress","h-qeKr1k78EgiZok",{"x":36,"y":36,"zoom":37,"background":38},[119],{"type":19,"text":120,"spans":121,"direction":22},"SoX: How to Add Fade-In & Fade-Out to Audio",[],3,49,1794609967408]