Created
March 26, 2018 07:56
-
-
Save rocket-pig/393b752fb0c5bb43e03ff5b6d1c1cf74 to your computer and use it in GitHub Desktop.
A wrapper around Kyubyong's mindblowing TTS Tensorflow project https://github.com/Kyubyong/dc_tts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import os,sys,shutil | |
from playsound import playsound | |
phrase = sys.argv[1] | |
with open('harvard_sentences.txt','w') as f: | |
f.write("some horseshit it never reads this line\n1. "+str(phrase)+"\n") | |
os.system('python synthesize.py') | |
phrase=phrase.replace(" ","") | |
shutil.move('samples/1.wav','backup/'+phrase+'.wav') | |
playsound('backup/'+phrase+'.wav') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In case anyone wonder how to use this.
wrapper.py
file and place it in repopython wrapper.py "Some text here"