From f659e98a522d2f12ab57b55a025e263fb44d3fbe Mon Sep 17 00:00:00 2001 From: 3djc Date: Sun, 18 Jun 2017 10:01:53 +0200 Subject: [PATCH] Improve default voice tempo (pith remains untouched) --- tools/nightly22/tts.py | 2 +- tools/release22/tts.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/nightly22/tts.py b/tools/nightly22/tts.py index 5ad157d2c..acb5cfab4 100755 --- a/tools/nightly22/tts.py +++ b/tools/nightly22/tts.py @@ -37,7 +37,7 @@ def generate(str, filename): output = "output.mp3" command = 'gtts-cli -l %s -o %s "%s"' % (voice[:2], output, str) os.system(command.encode('utf-8')) - command = "sox %s -r 32000 %s" % (output, filename) + command = "sox %s -r 32000 %s tempo 1.2" % (output, filename) os.system(command.encode('utf-8')) command = "rm -f output.mp3" os.system(command.encode('utf-8')) diff --git a/tools/release22/tts.py b/tools/release22/tts.py index 5ad157d2c..acb5cfab4 100755 --- a/tools/release22/tts.py +++ b/tools/release22/tts.py @@ -37,7 +37,7 @@ def generate(str, filename): output = "output.mp3" command = 'gtts-cli -l %s -o %s "%s"' % (voice[:2], output, str) os.system(command.encode('utf-8')) - command = "sox %s -r 32000 %s" % (output, filename) + command = "sox %s -r 32000 %s tempo 1.2" % (output, filename) os.system(command.encode('utf-8')) command = "rm -f output.mp3" os.system(command.encode('utf-8'))