split_audiobook
split_audiobook copied to clipboard
try to split a aac audio file
chapters = list(chapters)
File "D:\Download\audio-visual\saas\tiktoka\JianYingActionsSrt\components\preprocess\split_audiobook.py", line 345, in calc_split_points
silences = SilenceDetector(fname, opts.silence, opts.silence_duration)
File "D:\Download\audio-visual\saas\tiktoka\JianYingActionsSrt\components\preprocess\split_audiobook.py", line 474, in __init__
self._detect()
File "D:\Download\audio-visual\saas\tiktoka\JianYingActionsSrt\components\preprocess\split_audiobook.py", line 562, in _detect
elif self._silences[-1][1] > self.total_duration:
IndexError: list index out of range
if self._start and self._start > self.total_duration:
self.total_duration = self._start
elif self._silences==[]:
pass
elif self._silences[-1][1] > self.total_duration:
self.total_duration = self._silences[-1][1]
print('?/',self.total_duration)
change like this split file mode it actually did not split
audio length is 120 minutes , i want to split by 60, so it should be 2 file