0

I'm working in python and I have a signed URL to a wav file. I need to find the duration of that file but I can't find any libraries that do this without requiring me to download it. Are there any libraries like this available or has anyone written code to do this? I've tried AugioSegment but it doesn't look like there's a choice to use a URL.

bballboy8
  • 400
  • 6
  • 25
  • the WAV codec has a 44 byte header which contains the length of the payload ... this value is not guaranteed to be accurate yet may work ... so do a read which is limited to only retrieving those header bytes then pluck out the proper header attribute – Scott Stensland Aug 27 '22 at 13:03
  • here is the WAV file header layout https://stackoverflow.com/a/28137825/147175 – Scott Stensland Aug 27 '22 at 13:11

0 Answers0