Can someone tell me how to use the beep api and how to get it to work

Thanx