split_audiobook icon indicating copy to clipboard operation
split_audiobook copied to clipboard

try to split a aac audio file

Open wanghaisheng opened this issue 3 years ago • 0 comments

    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

wanghaisheng avatar May 17 '22 21:05 wanghaisheng