From 85bb6ea3a7ccded42054c6ae84e1f21ce63173b5 Mon Sep 17 00:00:00 2001 From: 3djc Date: Wed, 31 May 2017 10:47:20 +0200 Subject: [PATCH] This fixes #4980 --- tools/nightly22/tts.py | 4 +++- tools/release22/tts.py | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/nightly22/tts.py b/tools/nightly22/tts.py index b456367da..5ad157d2c 100755 --- a/tools/nightly22/tts.py +++ b/tools/nightly22/tts.py @@ -39,6 +39,8 @@ def generate(str, filename): os.system(command.encode('utf-8')) command = "sox %s -r 32000 %s" % (output, filename) os.system(command.encode('utf-8')) + command = "rm -f output.mp3" + os.system(command.encode('utf-8')) ################################################################ @@ -84,7 +86,7 @@ if __name__ == "__main__": directory = "pt" voice = "pt-PT" - + else: print("which language?") exit() diff --git a/tools/release22/tts.py b/tools/release22/tts.py index 1e683566b..5ad157d2c 100755 --- a/tools/release22/tts.py +++ b/tools/release22/tts.py @@ -39,6 +39,8 @@ def generate(str, filename): os.system(command.encode('utf-8')) command = "sox %s -r 32000 %s" % (output, filename) os.system(command.encode('utf-8')) + command = "rm -f output.mp3" + os.system(command.encode('utf-8')) ################################################################