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)