How to get audio duration in JavaScript?
var x = document. getElementById("myAudio"). duration; Click the button to get the exact length (duration) of the audio, in seconds.
var x = document. getElementById("myAudio"). duration; Click the button to get the exact length (duration) of the audio, in seconds.