Spaces:
Runtime error
Runtime error
cocktailpeanut
commited on
Commit
•
372bdc9
1
Parent(s):
9790b0a
update
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ else:
|
|
15 |
languages = ["EN", "ES", "FR", "ZH", "JP", "KR"]
|
16 |
en = ["EN-Default", "EN-US", "EN-BR", "EN_INDIA", "EN-AU"]
|
17 |
|
18 |
-
LANG = sys.argv[1]
|
19 |
|
20 |
def synthesize(speaker, text, speed=1.0, progress=gr.Progress()):
|
21 |
model = TTS(language=LANG, device=device)
|
|
|
15 |
languages = ["EN", "ES", "FR", "ZH", "JP", "KR"]
|
16 |
en = ["EN-Default", "EN-US", "EN-BR", "EN_INDIA", "EN-AU"]
|
17 |
|
18 |
+
LANG = sys.argv[1].strip()
|
19 |
|
20 |
def synthesize(speaker, text, speed=1.0, progress=gr.Progress()):
|
21 |
model = TTS(language=LANG, device=device)
|