Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -23,6 +23,8 @@ def tts(text: str):
|
|
23 |
print(f"Input text was cutoff since it went over the {MAX_TXT_LEN} character limit.")
|
24 |
print(text)
|
25 |
|
|
|
|
|
26 |
# synthesize
|
27 |
synthesizer = Synthesizer(f"{MODEL_DIR}/model.pth", f"{MODEL_DIR}/config.json")
|
28 |
wavs = synthesizer.tts(text)
|
|
|
23 |
print(f"Input text was cutoff since it went over the {MAX_TXT_LEN} character limit.")
|
24 |
print(text)
|
25 |
|
26 |
+
text = text.replace("I", "ӏ") #replace capital is with "Palochka" symbol
|
27 |
+
|
28 |
# synthesize
|
29 |
synthesizer = Synthesizer(f"{MODEL_DIR}/model.pth", f"{MODEL_DIR}/config.json")
|
30 |
wavs = synthesizer.tts(text)
|