DIsplay sound for a website

Hello guys, i want to add sound on a website for notifications.
Do you know if there is a solution in elixir or the easiest way is to just do it in javascript ?

Elixir would make sense for any server-side manipulation. I wouldn’t want to add network latency into the delay between a notification and the sound playing so the best bet is using the browser. You could likely have the file in localStorage to save on the network round trip of downloading the file. I also haven’t looked into how other example client-side frameworks handle this so there may be more tricks to make this a great experience.

JavaScript has a Web Audio API that allows playing or even synthesizing sounds on the client side. That’s usually the best option.