Support us on Patreon to keep GamingOnLinux alive. This ensures all of our main content remains free for everyone. Just good, fresh content! Alternatively, you can donate through PayPal. You can also buy games using our partner links for GOG and Humble Store.
Fun with audio
Shmerl May 10, 2016
Not really directly gaming related, but similar in nature. Sometimes it's good to have some fun ambient noise (for example for working and such).

I once tried reproducing noise that some games have for various spaceships cockpits / engine rooms. I ended up finding this ambient white noise generator for sox:

play -c2 -n synth whitenoise band -n 100 24 band -n 300 100 gain +20

But it's lacking additional beeps and buzzes that various computers usually produce. So, to take a shortcut you can just get different beeps from Star Trek

#!/bin/bash

wget -c http://www.trekcore.com/audio/computer/computer_work_beep.mp3 -O computerbeep_0.mp3
for ((i=1; i<=75; i++)); do wget -c http://www.trekcore.com/audio/computer/computerbeep_${i}.mp3; done


And then run this beeping script (in parallel with sox noise command above):
#!/bin/bash

beepsmax=75
sleepmax=${sleepmax:-"15"} # seconds

while true; do
   beep=$((RANDOM % beepsmax))
   sleeptime=$((RANDOM % sleepmax))

   mpv computerbeep_${beep}.mp3
   sleep $sleeptime
done


call it for example random_beep.sh and you can run it like:
sleepmax=20 ./random_beep.sh

sleepmax is by default 15 (maximum time between random beeps). You can set it to other time like above. Have fun :)
While you're here, please consider supporting GamingOnLinux on:

Reward Tiers: Patreon. Plain Donations: PayPal.

This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!

You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Login / Register


Or login with...
Sign in with Steam Sign in with Google
Social logins require cookies to stay logged in.