4

Is there a function in X11 or built into Linux that can produce a Beep sound with different frequencies?

Some function like the Beep(dwFreq, dwDuration) function in Windows which has arguments that allows for the specification of frequency in hertz and a duration in milliseconds.

Paul
  • 26,170
  • 12
  • 85
  • 119
Minimus Heximus
  • 2,683
  • 3
  • 25
  • 50
  • 1
    You may want to start with [xbell(3) - Linux man page](http://linux.die.net/man/3/xbell) then look at [xdevicebell(3) - Linux man page](http://linux.die.net/man/3/xdevicebell) then look at [xchangefeedbackcontrol(3) - Linux man page](http://linux.die.net/man/3/xchangefeedbackcontrol) however it may be a bit complicated. See also http://stackoverflow.com/questions/10072909/beep-on-linux-in-c – Richard Chambers Sep 07 '15 at 19:36
  • This is actually a good question and I would be interested in an answer as well. – Richard Chambers Sep 07 '15 at 19:46

1 Answers1

2

Try with speaker-test(1). It can be usually found on alsa-utils package.

example (generates a sine wave, 440 Hz):

speaker-test -f 440 -t sine