import librosa
filepath = “test.wav”
d=librosa.get_duration(filename=filepath)
print(d)
python读取音频的时长
Guess you like
Origin blog.csdn.net/weixin_44885180/article/details/115868730
Ranking
import librosa
filepath = “test.wav”
d=librosa.get_duration(filename=filepath)
print(d)