0

Are there integrated sounds into the browser(Chrome, Edge, FF, etc), just as they are for fonts, that one can use to play notification sounds, such as beeps and so on??

Not something as https://base64.guru/developers/html/audio or How to play a notification sound on websites?

function playSound(url) {
  const audio = new Audio(url);
  audio.play();
}
<button onclick="playSound('https://your-file.mp3');">Play</button>

Thanks

Konrad
  • 21,590
  • 4
  • 28
  • 64
user2718593
  • 111
  • 8
  • Does this answer your question? [Generating sound on the fly with javascript/html5](https://stackoverflow.com/questions/6343450/generating-sound-on-the-fly-with-javascript-html5) – Konrad Nov 14 '22 at 20:07
  • Interresting concept, but except if you are a sound engineer you know what to play for a beep and alarm, etc. One has integrated fonts, system icons(e.g. mouse pointer), systems sound, so I'm wondering if they are no integrated notifications into browser that one has access to. – user2718593 Nov 14 '22 at 20:30
  • No, not really. You can use a library with already generated sounds – Konrad Nov 14 '22 at 20:44
  • Maybe I wrongly interpreted, would you be so kind to shed light and give a few example, for instance a notification sound when a task is completed. Thx – user2718593 Nov 14 '22 at 20:48

0 Answers0