Open vdevel opened 11 years ago
Nice idea. I once considered that but didn't know how to implement it in a portable way, and could not find free sound.
+1
IMHO, there is no way to make portable sound program.
In my short research to study portable sound utility such as timidity, we need to make drivers for every platforms.
Here is a PoC to realize the whistle in SL. https://github.com/miurahr/sl/tree/whistle Audio file is CC0 license. shared on
I've write Makefile to detect host OS and select the way to make it. It may be an only way to make sound to use is beep() with libncurses.
How about w|aplay
?
Use for i in $(seq 1 5); do w|aplay; done
to get five blows of the worst whistle ever.
Great but aplay
is not portable.
Maybe an easy compromise would be to add 'cheew cheew' strings to the steam-clouds?
I always thought it was 'choo choo'
play? aka, sox
+1 to "choo choo"
For those who really want something like this:
https://www.youtube.com/watch?v=UKitTgH43mo&feature=youtu.be
Here is a simple script:
#!/bin/bash
cvlc ~/Music/caseyjr.wav > /dev/null 2>&1 &
/usr/games/sl
Call it sl
and put it in your path. You'll have to find the clip yourself, since I'm sure it's copyrighted.
http://www.portaudio.com/ is portable...
The audio output device is not guaranteed to be at the same physical location as the user's terminal (e.g. if a user is connecting remotely via ssh).
All the better reason for adding the feature.
I think if it's OSX as operating system you could just have it be for i in $(seq 1 5); do say 'choo'; done
and that would do the trick.
say also comes with gnustep! www.gnustep.org
can the developer add a whistle sound to sl? (this is an enhancement request)