[mdlug] Star Trek Background sound

Mat Enders mat.enders at gmail.com
Wed Dec 14 13:49:59 EST 2011


This is for you Gary

Here is a shell script that will give you that being on the starship
Enterprise feeling.  You will need to install sox. espeak, and jack.
In Debian that is apt-get install sox espeak jack  if you are using
Ubuntu or one of its derivatives add sudo to the front of that.  In
Fedora or one of its derivatives yum install sox espeak jack.  In
OpenSuSE use YaST.

Copy and paste the below shell script into the text editor of your choice.

#!/bin/bash

# Star Trek

while [ 0==0 ] ; do
 oclock=$(date +"%H %M")
 espeak -p 0 -a 5 -v en-sc -s 50 "The Time is, $oclock "
 sleep 1
 espeak -p 300 -a 5 -v en-us -s 100 ",,, $oclock. Engage?"
 sleep 1
 espeak -p 10 -a 10 -v en-uk -s 150 " Yes,,,,  Engage,,,, Now!"
 play -n -c1 synth whitenoise lowpass -1 120 lowpass -1 120 lowpass -1
120 gain +14&
 sleep 300
killall play
done

Save it as whatever name you want.  Make it executable by issuing the
following command chmod 711 whateveryounamedit.  If your home
directory or wherever you saved it is not in you path then cd to
wherever you saved the file and issue the following command.
./nameoffile  You can change the length of time it takes to loop by
changing the last sleep command those are seconds and it is set to 5
minutes.  Have Fun!

-- 
Mathew E. Enders

"Where once Samba and Apache sold Linux to the world they are now just
part of the plumbing.  But that's OK, plumbers make good money."
--Jeremy Allison



More information about the mdlug mailing list