sohojoe commited on
Commit
7efb19e
1 Parent(s): f615884

add mp3 format hint

Browse files
Files changed (1) hide show
  1. debug_001.py +1 -1
debug_001.py CHANGED
@@ -36,7 +36,7 @@ with open("chunks.pkl", "rb") as f:
36
  bytes_io.seek(0)
37
  else:
38
  bytes_io = io.BytesIO(chunk)
39
- container = av.open(bytes_io, 'r')
40
  audio_stream = next(s for s in container.streams if s.type == 'audio')
41
  for frame in container.decode(audio_stream):
42
  # Convert the audio frame to a NumPy array
 
36
  bytes_io.seek(0)
37
  else:
38
  bytes_io = io.BytesIO(chunk)
39
+ container = av.open(bytes_io, 'r', format='mp3')
40
  audio_stream = next(s for s in container.streams if s.type == 'audio')
41
  for frame in container.decode(audio_stream):
42
  # Convert the audio frame to a NumPy array