I have searched on [DartLang and Beep] and have found only various HTML5 solutions that require a sound file. I would like to do a as basic and as universal a “Bell” sound as possible without using a sound file. (I’m using Ubuntu and there is a System beep function that reports the following when I call it with -h:
Usage:
beep [-f freq] [-l length] [-r reps] [-d delay] [-D delay] [-s] [-c] [–verbose | –debug] [-e device]
However, again, I just want to do this in as simple and universal a way as possible.
There is also this clue:
7 00/07 07 07 BEL (Ctrl-G) BELL (Beep)
…but nothing I could think of doing with the print() function would cause a beep.
Thanks in advance!
I don’t know why are you doing this, but it really depends on whether you want this to work on the browser or on the console.
If you want to do this on the console, try this:
It beeps for me at least on Windows. It should work if the terminal supports it (and it’s not disabled by the user and so forth).
If you want to do this on the browser, you should play a sound file.
Here’s a free beep sound: http://www.freesound.org/people/SpeedY/sounds/3062/
A very simple example on the browser: