From 176c2f7be9f4191a97ff5c0d2fe8953dff60fc24 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Fri, 29 Mar 2024 16:32:40 -0600 Subject: [PATCH] fix 'u' in join-partial-lines --- scripts/join-partial-lines.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/join-partial-lines.py b/scripts/join-partial-lines.py index 45876d4..b3c7911 100644 --- a/scripts/join-partial-lines.py +++ b/scripts/join-partial-lines.py @@ -60,7 +60,9 @@ def process_chunk(audio_guess, timestamp): while True: choice = getch() if choice == 'u': - cutter.take_audio(audio_guess, timestamp, timestamp['start'], timestamp['end']) + length = timestamp['end'] - timestamp['start'] + adjusted = {'start': cutter.current_sec, 'end': cutter.current_sec + length} + cutter.take_audio(audio_guess, adjusted, timestamp['start'], timestamp['end']) break elif choice == 'd': break