M
M
Maxim Siomin2020-06-03 13:14:42
Python
Maxim Siomin, 2020-06-03 13:14:42

How to find the length of a song in python?

I have a player and it gets a list of songs from defined with os.listdir, plays the song with os.startfile, how can the system know the length of the song

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Developer, 2020-06-03
@samodum

In the file format, the header contains information about the duration of the track

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question