From 24312f0ca75602900716300ccae4d5da4ced49c2 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Fri, 29 Mar 2024 16:12:44 -0600 Subject: [PATCH] fix heinous bug in cut-voice-track --- scripts/cut-voice-track.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/cut-voice-track.py b/scripts/cut-voice-track.py index bb6ac67..d1dd4ef 100644 --- a/scripts/cut-voice-track.py +++ b/scripts/cut-voice-track.py @@ -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,