You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to save the silence using the --save-silence argument, I get this error:
Finding gaps...
Traceback (most recent call last):
File "video-remove-silence", line 138, in <module>
silences, including_end = find_silences(audio_file.name)
File "video-remove-silence", line 118, in find_silences
frames = wav.readframes(end - start)
File "C:\Users\USER\AppData\Local\Programs\Python\Python38\lib\wave.py", line 243, in readframes
data = self._data_chunk.read(nframes * self._framesize)
File "C:\Users\USER\AppData\Local\Programs\Python\Python38\lib\chunk.py", line 136, in read
data = self.file.read(size)
File "C:\Users\USER\AppData\Local\Programs\Python\Python38\lib\chunk.py", line 136, in read
data = self.file.read(size)
TypeError: argument should be integer or None, not 'float'
I went and took a look and it seems that this is where it fails: frames = wav.readframes(end - start), because end - start is a float. I tried casting it to an int but that didn't work for some reason.
The text was updated successfully, but these errors were encountered:
When I try to save the silence using the
--save-silence
argument, I get this error:I went and took a look and it seems that this is where it fails:
frames = wav.readframes(end - start)
, becauseend - start
is a float. I tried casting it to an int but that didn't work for some reason.The text was updated successfully, but these errors were encountered: