From e8bdc317f560896ddbfdc192594722e71b1f6f25 Mon Sep 17 00:00:00 2001 From: Elizabeth Cray Date: Wed, 16 Oct 2024 09:47:00 -0400 Subject: [PATCH] Remove audio when done --- meatgrinder.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meatgrinder.py b/meatgrinder.py index f14a061..3a3b85a 100644 --- a/meatgrinder.py +++ b/meatgrinder.py @@ -34,6 +34,9 @@ audio_file = media_convert.process(args.input) transcription = transcribe.process(audio_file) +if os.path.isfile(audio_file): + os.remove(audio_file) + if args.save_transcription: with open(args.save_transcription, 'w') as f: f.write(transcription)