In my HTML page I have 9 images for dialing numbers and one text box that shows the pressed numbers. I want each of those images to immediately play beep sound when users click
You can use embed element for play sounds, but you've to check the formats supported by the different browsers.
Embed element on MDN