Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -16,11 +16,11 @@ def download_assets():
|
|
16 |
def text_to_speech(text):
|
17 |
text = nat_normalize_text(text)
|
18 |
mel = text2mel(
|
19 |
-
text,
|
20 |
-
"lexicon.txt",
|
21 |
-
0.2,
|
22 |
-
"acoustic_latest_ckpt.pickle",
|
23 |
-
"duration_latest_ckpt.pickle"
|
24 |
)
|
25 |
wave = mel2wave(mel, "config.json", "hk_hifi.pickle")
|
26 |
return (wave * (2**15)).astype(np.int16)
|
|
|
16 |
def text_to_speech(text):
|
17 |
text = nat_normalize_text(text)
|
18 |
mel = text2mel(
|
19 |
+
text,
|
20 |
+
"lexicon.txt",
|
21 |
+
0.2,
|
22 |
+
"acoustic_latest_ckpt.pickle",
|
23 |
+
"duration_latest_ckpt.pickle",
|
24 |
)
|
25 |
wave = mel2wave(mel, "config.json", "hk_hifi.pickle")
|
26 |
return (wave * (2**15)).astype(np.int16)
|