The beeper device is called beeper.
You can request the beeper to play a sound using the play method :
play(frequency, time);
frequency is an integer between 200 and 14000, which is the frequency of the sound.
time is an integer, which is the duration of the sound in milliseconds. A duration of 0 is infinite.
The command returns immediatly. If you want to wait until the end of the beep, use :
{ beeper.play(myFrequency, myDuration) & wait(myDuration) },