[{"data":1,"prerenderedAt":126},["ShallowReactive",2],{"blog-post-sox-generate-white-noise":3,"recent-posts":82},{"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},"avYaDhEAACkAgIs6","sox-generate-white-noise",null,"blog_posts","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=avo17REAACkAkm6j&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22avYaDhEAACkAgIs6%22%29+%5D%5D",[],"2026-11-15T22:45:01+0000",[12],"sox-how-to-generate-white-noise",[],"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 Generate White Noise",[],"ltr","2026-11-15",[25],{"type":26,"text":27,"spans":28,"direction":22},"heading2","Learn how to generate white noise with SoX and add volume control and smooth fades.",[],{"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\u002FEqoOaUiO182qEeBj_soxwhitenoise.png?auto=format,compress","EqoOaUiO182qEeBj",{"x":36,"y":36,"zoom":37,"background":38},0,1,"transparent",[40,44,48,51,54,57,60,63,66,69,72,75,79],{"type":41,"text":42,"spans":43,"direction":22},"paragraph","Before we start, make sure you have SoX installed on your computer. On macOS, you can install it with Homebrew:",[],{"type":45,"text":46,"spans":47,"direction":22},"preformatted","brew install sox",[],{"type":41,"text":49,"spans":50,"direction":22},"First, open your terminal and navigate to the folder where you want to save your audio. To create ten seconds of white noise, run this command:",[],{"type":45,"text":52,"spans":53,"direction":22},"sox -n whitenoise.wav synth 10 whitenoise vol 0.2",[],{"type":41,"text":55,"spans":56,"direction":22},"The \u003Ccode>-n\u003C\u002Fcode> flag means there is no input file. The \u003Ccode>synth\u003C\u002Fcode> effect generates the sound, \u003Ccode>10\u003C\u002Fcode> sets the length in seconds, and \u003Ccode>whitenoise\u003C\u002Fcode> selects white noise. The \u003Ccode>vol 0.2\u003C\u002Fcode> effect reduces the amplitude to twenty percent.",[],{"type":41,"text":58,"spans":59,"direction":22},"This finishes almost instantly. Don't worry if you don't see a success message. Your \u003Ccode>whitenoise.wav\u003C\u002Fcode> file should appear in the folder.",[],{"type":41,"text":61,"spans":62,"direction":22},"To check its duration, run:",[],{"type":45,"text":64,"spans":65,"direction":22},"soxi -d whitenoise.wav",[],{"type":41,"text":67,"spans":68,"direction":22},"The \u003Ccode>-d\u003C\u002Fcode> flag prints just the duration. You should see \u003Ccode>00:00:10.00\u003C\u002Fcode>. To hear the first five seconds, run:",[],{"type":45,"text":70,"spans":71,"direction":22},"play whitenoise.wav trim 0 5",[],{"type":41,"text":73,"spans":74,"direction":22},"For continuous playback without saving a file, run \u003Ccode>play -n synth whitenoise vol 0.2\u003C\u002Fcode>. Press \u003Ccode>control + C\u003C\u002Fcode> to stop.",[],{"type":76,"oembed":77},"embed",{"embed_url":78,"type":76},"",{"type":41,"text":80,"spans":81,"direction":22},"For a smoother start and finish, add \u003Ccode>fade 2 10 2\u003C\u002Fcode> after the volume effect. This adds a two-second fade in and fade out within the ten-second file.",[],{"results":83,"page":37,"results_per_page":124,"results_size":124,"total_results_size":125,"total_pages":37},[84,103,122],{"id":85,"uid":86,"url":6,"type":7,"href":87,"tags":88,"first_publication_date":10,"last_publication_date":10,"slugs":89,"linked_documents":91,"lang":14,"alternate_languages":92,"data":93},"avWfjhIAACoAxSRa","sox-change-audio-volume","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=avo17REAACkAkm6j&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22avWfjhIAACoAxSRa%22%29+%5D%5D",[],[90],"sox-how-to-change-audio-volume",[],[],{"image":94,"title":99},{"dimensions":95,"alt":6,"copyright":6,"url":96,"id":97,"edit":98},{"width":31,"height":32},"https:\u002F\u002Fimages.prismic.io\u002Fmarks-personal-website\u002FmJDrXryuaCVFhGHg_soxlouderaudio.png?auto=format,compress","mJDrXryuaCVFhGHg",{"x":36,"y":36,"zoom":37,"background":38},[100],{"type":19,"text":101,"spans":102,"direction":22},"SoX: How to Change Audio Volume",[],{"id":104,"uid":105,"url":6,"type":7,"href":106,"tags":107,"first_publication_date":10,"last_publication_date":10,"slugs":108,"linked_documents":110,"lang":14,"alternate_languages":111,"data":112},"avWntRIAAC0AxTLs","sox-concatenate-audio-files","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=avo17REAACkAkm6j&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22avWntRIAAC0AxTLs%22%29+%5D%5D",[],[109],"sox-how-to-concatenate-audio-files",[],[],{"image":113,"title":118},{"dimensions":114,"alt":6,"copyright":6,"url":115,"id":116,"edit":117},{"width":31,"height":32},"https:\u002F\u002Fimages.prismic.io\u002Fmarks-personal-website\u002FAfHHUVDRAQb5RZwx_soxconcataudio.png?auto=format,compress","AfHHUVDRAQb5RZwx",{"x":36,"y":36,"zoom":37,"background":38},[119],{"type":19,"text":120,"spans":121,"direction":22},"SoX: How to Concatenate Audio Files",[],{"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":123},{"image":29,"title":17},3,54,1794782724072]