[{"data":1,"prerenderedAt":135},["ShallowReactive",2],{"blog-post-sox-record-audio":3,"recent-posts":74},{"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},"avg1XhEAACkAj4ea","sox-record-audio",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+%22avg1XhEAACkAj4ea%22%29+%5D%5D",[],"2026-11-17T22:45:19+0000",[12],"sox-how-to-record-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 Record Audio",[],"ltr","2026-11-17",[25],{"type":26,"text":27,"spans":28,"direction":22},"heading2","Learn how to record audio from your microphone 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\u002F5jiolgC8xb4z6caZ_sox-record-audio.png?auto=format,compress","5jiolgC8xb4z6caZ",{"x":36,"y":36,"zoom":37,"background":38},0,1,"transparent",[40,44,48,52,55,58,61,64,67,71],{"type":41,"text":42,"spans":43,"direction":22},"paragraph","Before we start, make sure you have SoX installed on your computer and a microphone ready. Your Mac's built-in one works fine. On a Mac, you can install SoX with Homebrew, and the \u003Ccode>rec\u003C\u002Fcode> command comes with it:",[],{"type":45,"text":46,"spans":47,"direction":22},"preformatted","brew install sox",[],{"type":49,"text":50,"spans":51,"direction":22},"heading3","Record from the Microphone",[],{"type":41,"text":53,"spans":54,"direction":22},"First, open your terminal and navigate to the folder where you want to save your recording using \u003Ccode>cd\u003C\u002Fcode>. To record from your default microphone, run \u003Ccode>rec output.wav\u003C\u002Fcode>. It keeps recording until you press \u003Ccode>control + C\u003C\u002Fcode>. To record in mono and stop by itself after five seconds, run this command:",[],{"type":45,"text":56,"spans":57,"direction":22},"rec -c 1 output.wav trim 0 5",[],{"type":41,"text":59,"spans":60,"direction":22},"Just remember to replace \u003Ccode>output.wav\u003C\u002Fcode> with the name you want for your recording. The \u003Ccode>-c 1\u003C\u002Fcode> flag records a single channel, and \u003Ccode>trim 0 5\u003C\u002Fcode> starts at \u003Ccode>0\u003C\u002Fcode> seconds and stops after \u003Ccode>5\u003C\u002Fcode> seconds.",[],{"type":41,"text":62,"spans":63,"direction":22},"Don't worry if macOS asks whether Terminal can use the microphone the first time. Just allow it. While it records, SoX prints a live level meter, and when it's finished it prints \u003Ccode>Done.\u003C\u002Fcode>",[],{"type":41,"text":65,"spans":66,"direction":22},"To make sure everything worked, run \u003Ccode>soxi -d output.wav\u003C\u002Fcode>. It should print \u003Ccode>00:00:05.00\u003C\u002Fcode>.",[],{"type":68,"oembed":69},"embed",{"embed_url":70,"type":68},"",{"type":41,"text":72,"spans":73,"direction":22},"If you want to stop a recording earlier, just press \u003Ccode>control + C\u003C\u002Fcode>. SoX still saves everything it recorded so far.",[],{"results":75,"page":37,"results_per_page":133,"results_size":133,"total_results_size":134,"total_pages":37},[76,95,114],{"id":77,"uid":78,"url":6,"type":7,"href":79,"tags":80,"first_publication_date":10,"last_publication_date":10,"slugs":81,"linked_documents":83,"lang":14,"alternate_languages":84,"data":85},"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",[],[82],"sox-how-to-change-bit-depth",[],[],{"image":86,"title":92},{"dimensions":87,"alt":88,"copyright":6,"url":89,"id":90,"edit":91},{"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},[93],{"type":19,"text":88,"spans":94,"direction":22},[],{"id":96,"uid":97,"url":6,"type":7,"href":98,"tags":99,"first_publication_date":10,"last_publication_date":10,"slugs":100,"linked_documents":102,"lang":14,"alternate_languages":103,"data":104},"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",[],[101],"sox-how-to-reverse-audio",[],[],{"image":105,"title":111},{"dimensions":106,"alt":107,"copyright":6,"url":108,"id":109,"edit":110},{"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},[112],{"type":19,"text":107,"spans":113,"direction":22},[],{"id":115,"uid":116,"url":6,"type":7,"href":117,"tags":118,"first_publication_date":10,"last_publication_date":10,"slugs":119,"linked_documents":121,"lang":14,"alternate_languages":122,"data":123},"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",[],[120],"sox-how-to-convert-stereo-to-mono",[],[],{"image":124,"title":130},{"dimensions":125,"alt":126,"copyright":6,"url":127,"id":128,"edit":129},{"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},[131],{"type":19,"text":126,"spans":132,"direction":22},[],3,64,1794955544421]