Click Sound for Button Operations

Is it possible to make a click sound as feedback for button operations using
PC speaker ? I’d like to make such click sound feedback on the touch screen

I found the beep() function, but I cannot specify the frequency and duration
for the beep sound. Does anyone know how to manipulate the PC speaker from
a Photon application ?