Get .wav file length or duration

后端 未结 9 750
暗喜
暗喜 2020-12-04 10:17

I\'m looking for a way to find out the duration of a audio file (.wav) in python. So far i had a look at python wave library, mutagen, pymedi

9条回答
  •  孤街浪徒
    2020-12-04 10:46

    the librosa library can do this: librosa

    import librosa
    librosa.get_duration(filename='my.wav')
    

提交回复
热议问题