Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,6 @@ import os
|
|
8 |
|
9 |
def download_assets():
|
10 |
os.system("gdown --id 16UhN8QBxG1YYwUh8smdEeVnKo9qZhvZj -O duration_latest_ckpt.pickle")
|
11 |
-
os.system("gdown --id 1-8Ig65S3irNHSzcskT37SLgeyuUhjKdj -O acoustic_latest_ckpt.pickle")
|
12 |
os.system("gdown --id 19cRNDC6IrHFAAE4U9I7K0mzLMgPsi5zb -O hk_hifi.pickle")
|
13 |
os.system("wget https://raw.githubusercontent.com/NTT123/vietTTS/master/assets/hifigan/config.json")
|
14 |
os.system("wget https://raw.githubusercontent.com/NTT123/vietTTS/master/assets/infore/lexicon.txt")
|
@@ -22,7 +21,7 @@ def text_to_speech(text):
|
|
22 |
text,
|
23 |
"lexicon.txt",
|
24 |
0.2,
|
25 |
-
"
|
26 |
"duration_latest_ckpt.pickle",
|
27 |
)
|
28 |
wave = mel2wave(mel, "config.json", "hk_hifi.pickle")
|
|
|
8 |
|
9 |
def download_assets():
|
10 |
os.system("gdown --id 16UhN8QBxG1YYwUh8smdEeVnKo9qZhvZj -O duration_latest_ckpt.pickle")
|
|
|
11 |
os.system("gdown --id 19cRNDC6IrHFAAE4U9I7K0mzLMgPsi5zb -O hk_hifi.pickle")
|
12 |
os.system("wget https://raw.githubusercontent.com/NTT123/vietTTS/master/assets/hifigan/config.json")
|
13 |
os.system("wget https://raw.githubusercontent.com/NTT123/vietTTS/master/assets/infore/lexicon.txt")
|
|
|
21 |
text,
|
22 |
"lexicon.txt",
|
23 |
0.2,
|
24 |
+
"acoustic_ckpt_latest.pickle",
|
25 |
"duration_latest_ckpt.pickle",
|
26 |
)
|
27 |
wave = mel2wave(mel, "config.json", "hk_hifi.pickle")
|