5 On Ubuntu Saucy and Trust, offenc segfaults while encoding the PCM files so you might want to try
6 sox -t raw -e signed-integer -c 2 -r 44100 -b 16 beep100.pcm my_sound.ogg
13 Generated 2 secs of silence - dd if=/dev/zero of=silence.pcm bs=176400 count=2 ; oggenc -r silence.pcm
14 Generated by Neil Muller, Aug 2010
21 Generated by: tools/gen_sound.py 25 0.5 50 ; oggenc -o zzzzz.ogg -r beep100.pcm
22 Generate by Simon Cross, May 2014
23 License: MIT-style permissive license - see LICENSE.txt
29 Generated by: tools/gen_sound.py 1000 0.25 ; oggenc -o error.ogg -r beep1000.pcm
30 Generated by Neil Muller, May 2014
31 License: MIT-style permissive license - see LICENSE.txt
37 Generated by: tools/gen_sound.py 200 0.25 ; tools/gen_sound.py 400 0.25 ; tools/gen_sound.py 600 0.25 ; tools/gen_sound.py 800 0.25 ;
38 cat beep200.pcm beep400.pcm beep600.pcm beep800.pcm > startup.pcm ;
39 oggenc -o startup.ogg -r startup.pcm
40 Generated by Neil Muller, May 2014
41 License: MIT-style permissive license - see LICENSE.txt
48 Generated by: tools/gen_sound.py 200 0.25 ; tools/gen_sound.py 400 0.25 ; tools/gen_sound.py 600 0.25 ; tools/gen_sound.py 800 0.25 ;
49 cat beep800.pcm beep600.pcm beep400.pcm beep200.pcm > shutdown.pcm ;
50 oggenc -o shutdown.ogg -r shutdown.pcm
51 Generated by Stefano Rivera, May 2014
52 License: MIT-style permissive license - see LICENSE.txt
60 for ((j=500; $j < 800; j= $j+20 )); do python ../../tools/gen_sound.py $j 0.01 50; done
61 cat beep5??.pcm beep6??.pcm beep7??.pcm > zoop.pcm
62 oggenc -o zoop.ogg -r zoop.pcm
63 Generated by Neil Muller, May 2014
64 License: MIT-style permissive license - see LICENSE.txt
71 python ../../tools/gen_sound.py 1650 0.05 50 ; python ../../tools/gen_sound.py 1450 0.05 50
72 cat beep1450.pcm beep1650.pcm > chirp.pcm
73 oggenc -o chirp.ogg -r chirp.pcm
74 Generated by Neil Muller, May 2014
75 License: MIT-style permissive license - see LICENSE.txt
83 ./tools/gen_sound.py 25 0.01 25 ; ./tools/gen_sound.py 120 0.01 25 ; ./tools/gen_sound.py 150 0.01 25 ; ./tools/gen_sound.py 170 0.01 25 ; ./tools/gen_sound.py 200 0.01 25 ; ./tools/gen_sound.py 250 0.01 25 ; ./tools/gen_sound.py 350 0.01 25 ; ./tools/gen_sound.py 300 0.01 25
84 cat beep100.pcm beep250.pcm beep100.pcm beep200.pcm beep170.pcm beep300.pcm beep170.pcm beep100.pcm beep300.pcm beep120.pcm beep100.pcm beep300.pcm beep170.pcm beep120.pcm beep200.pcm beep170.pcm beep150.pcm beep300.pcm beep250.pcm beep350.pcm beep350.pcm beep120.pcm beep150.pcm beep300.pcm beep120.pcm beep200.pcm beep150.pcm beep200.pcm beep100.pcm beep120.pcm beep100.pcm beep300.pcm beep350.pcm beep200.pcm beep100.pcm beep300.pcm beep200.pcm beep200.pcm beep120.pcm beep250.pcm beep120.pcm beep100.pcm beep150.pcm beep100.pcm beep350.pcm beep120.pcm beep170.pcm beep170.pcm beep250.pcm beep170.pcm beep250.pcm beep100.pcm beep170.pcm beep350.pcm beep250.pcm beep150.pcm beep250.pcm beep200.pcm beep350.pcm beep120.pcm beep100.pcm beep120.pcm beep350.pcm beep100.pcm beep120.pcm beep200.pcm beep170.pcm beep300.pcm beep350.pcm beep100.pcm beep300.pcm beep120.pcm beep350.pcm beep250.pcm beep350.pcm beep150.pcm beep100.pcm > grind.pcm
85 oggenc -o grind.ogg -r grind.pcm
91 files = ['beep100.pcm', 'beep150.pcm', 'beep200.pcm', 'beep350.pcm', 'beep120.pcm', 'beep170.pcm', 'beep250.pcm', 'beep300.pcm']
92 cmd = 'cat beep100.pcm %s beep100.pcm > grind.pcm'
95 rnd.append(random.choice(files))
96 print cmd % ' '.join(rnd)
98 Generated by Neil Muller, May 2014
99 License: MIT-style permissive license - see LICENSE.txt