0

I'm trying to play a sound when I run an ajax request. But I don't know how to do it. I've try something like this. But it's not working at this time. Any advices ?

var sound = new Audio()
sound.src('/app/assets/javascripts/audio/notif_sound1.mp3')
sound.play()
stig Garet
  • 564
  • 2
  • 13

0 Answers0