Possible to get length of audio file?

Hi , is it possible to get the length of an audio file(in minutes)
I want this to make a progress bar

1 Like

Only by JavaScript

1 Like

How should i accomplish this?
I know java

Something like this

var thisAudio = document.getElementById("myAudio");

In .html page it will display the length (in seconds) of the audio file in the tag block having id=myAudio