Spaces:
Build error
Build error
chnk58hoang
commited on
Commit
•
2ad5e4b
1
Parent(s):
0d3771c
add normalize text
Browse files
app.py
CHANGED
@@ -8,6 +8,7 @@ vits = load_model()
|
|
8 |
def text_to_speech(text):
|
9 |
""" Text to speech
|
10 |
"""
|
|
|
11 |
text_inputs = np.asarray(
|
12 |
vits.tokenizer.text_to_ids(text),
|
13 |
dtype=np.int64,
|
|
|
8 |
def text_to_speech(text):
|
9 |
""" Text to speech
|
10 |
"""
|
11 |
+
text = normalize_text(text)
|
12 |
text_inputs = np.asarray(
|
13 |
vits.tokenizer.text_to_ids(text),
|
14 |
dtype=np.int64,
|