mtoyoda / sl

SL(1): Cure your bad habit of mistyping
Other
2.95k stars 427 forks source link

add a whistle sound, perhaps? #2

Open vdevel opened 11 years ago

vdevel commented 11 years ago

can the developer add a whistle sound to sl? (this is an enhancement request)

mtoyoda commented 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.

arangamani commented 11 years ago

+1

miurahr commented 10 years ago

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.

wchargin commented 10 years ago

How about w|aplay?

Use for i in $(seq 1 5); do w|aplay; done to get five blows of the worst whistle ever.

miurahr commented 10 years ago

Great but aplay is not portable.

spacekookie commented 10 years ago

Maybe an easy compromise would be to add 'cheew cheew' strings to the steam-clouds?

Foggalong commented 10 years ago

I always thought it was 'choo choo'

millette commented 9 years ago

play? aka, sox

asalisbury commented 7 years ago

+1 to "choo choo"

aliceneubert commented 7 years ago

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.

alexmyczko commented 6 years ago

http://www.portaudio.com/ is portable...

koalatux commented 6 years ago

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).

ddugovic commented 6 years ago

All the better reason for adding the feature.

mkuipers commented 4 years ago

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.

alexmyczko commented 4 years ago

say also comes with gnustep! www.gnustep.org