fix heinous bug in cut-voice-track

This commit is contained in:
2024-03-29 16:12:44 -06:00
parent ad62e11534
commit 24312f0ca7

View File

@@ -99,14 +99,14 @@ def process_chunk(audio_guess, possible_sections, signal_back):
cutter.take_audio(audio_guess, line_with_alts, start, end)
alts = []
for choice in choices[1:]:
start, end = start_and_end(choices[0])
start, end = start_and_end(choice)
length = end - start
alts.append({'start': cutter.current_sec, 'end': cutter.current_sec + length})
line_with_alts['alts'] = alts
cutter.take_audio(audio_guess, line_with_alts, start, end)
break
elif choice != '/' and choice in takes:
start, end = start_and_end(choices[0])
start, end = start_and_end(choice)
length = end - start
info = {
'start': cutter.current_sec,