From 1bd232abe7b4da48043b688e51422049c21067fe Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Mon, 13 Dec 2021 21:01:59 -0700 Subject: [PATCH] successful exit code possible for transcribe script --- scripts/transcribe-voice-track.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/transcribe-voice-track.py b/scripts/transcribe-voice-track.py index 6f8bdb3..2305c55 100644 --- a/scripts/transcribe-voice-track.py +++ b/scripts/transcribe-voice-track.py @@ -73,4 +73,8 @@ while True: print(f'{text}: {words[0]["start"]} {words[-1]["end"]}') json.dump(lines, f) - frames = int(input(f"Try different frames num? (was {frames}): ")) + frames = input(f"Try different frames num? (was {frames}) (press ENTER to quit): ") + if len(frames) == 0: + sys.exit(0) + else: + frames = int(frames)