From c2a6a20fc1b6116fc8f8e1b579a6da6e2cf15a86 Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Wed, 26 Apr 2017 13:13:55 +0200 Subject: [PATCH] [TTS] Fixes --- tools/nightly22/tts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/nightly22/tts.py b/tools/nightly22/tts.py index aba07a4ac..4841981db 100755 --- a/tools/nightly22/tts.py +++ b/tools/nightly22/tts.py @@ -29,12 +29,12 @@ sys.path.append(lib_path) def generate(str, filename): if 1: output = "output.wav" - command = 'pico2wave -l=%s -w=%s ""' % (voice, output, str) + command = 'pico2wave -l=%s -w=%s "%s"' % (voice, output, str) else: output = "output.mp3" command = 'gtts-cli -l %s -o %s "%s"' % (voice[:2], output, str) os.system(command.encode('utf-8')) - command = "sox %s %s reverse silence 1 0.1 0.1% reverse" % (output, filename) + command = "sox %s -r 32000 %s reverse silence 1 0.1 0.1%% reverse" % (output, filename) os.system(command.encode('utf-8')) ################################################################