This fixes #4980
This commit is contained in:
@@ -39,6 +39,8 @@ def generate(str, filename):
|
|||||||
os.system(command.encode('utf-8'))
|
os.system(command.encode('utf-8'))
|
||||||
command = "sox %s -r 32000 %s" % (output, filename)
|
command = "sox %s -r 32000 %s" % (output, filename)
|
||||||
os.system(command.encode('utf-8'))
|
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"
|
directory = "pt"
|
||||||
voice = "pt-PT"
|
voice = "pt-PT"
|
||||||
|
|
||||||
else:
|
else:
|
||||||
print("which language?")
|
print("which language?")
|
||||||
exit()
|
exit()
|
||||||
|
|||||||
@@ -39,6 +39,8 @@ def generate(str, filename):
|
|||||||
os.system(command.encode('utf-8'))
|
os.system(command.encode('utf-8'))
|
||||||
command = "sox %s -r 32000 %s" % (output, filename)
|
command = "sox %s -r 32000 %s" % (output, filename)
|
||||||
os.system(command.encode('utf-8'))
|
os.system(command.encode('utf-8'))
|
||||||
|
command = "rm -f output.mp3"
|
||||||
|
os.system(command.encode('utf-8'))
|
||||||
|
|
||||||
################################################################
|
################################################################
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user