Can't get the audio to play


Whenever the timer reach 1, it stopped but can’t play the audio file.

Not sure if the syntax for playing an audio file is correct.
I changed the www to dl for playing an wav file in my dropbox.

Here is my code:

Proper syntax:

const audio = new Audio('');;

Secondly, why are you playing an audio file that ticks for 27 or so seconds before ringing? The timer runs out, then we hear a ticking for half a minute, and then we hear a ring? Just something to think about.

1 Like