pydub obtient une longueur audio en quelques secondes

# credit to Stack Overflow oser in the source link
from pydub import AudioSegment
file_path = "/path/to/your/file.wav"
audio = AudioSegment.from_file(file_path)
print(audio.duration_seconds)
wolf-like_hunter