Improve default voice tempo (pith remains untouched)

This commit is contained in:
3djc
2017-06-18 10:01:53 +02:00
parent 97b2aa804d
commit f659e98a52
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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'))
+1 -1
View File
@@ -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'))