SoundBeep

Emits a tone from the PC speaker.

SoundBeep , Frequency, Duration

Parameters

Frequency

If blank or omitted, it defaults to 523. Otherwise, specify the frequency of the sound, a number between 37 and 32767, which can be an expression.

Duration

If blank or omitted, it defaults to 150. Otherwise, specify the duration of the sound, in milliseconds, which can be an expression.

Remarks

The script waits for the sound to finish before continuing. In addition, system responsiveness might be reduced during sound production.

If the computer lacks a sound card, a standard beep is played through the PC speaker.

To produce the standard system sounds instead of beeping the PC Speaker, see the asterisk mode of SoundPlay.

SoundPlay

Examples

Plays the default pitch and duration.

SoundBeep

Plays a higher pitch for half a second.

SoundBeep, 750, 500