Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -162,7 +162,11 @@ def combine_wav(source_dir, stamp, lang):
|
|
162 |
|
163 |
|
164 |
def mms_tts(Input_Text, lang_name="Burmese (mya)"):
|
165 |
-
lang_code = lang_codes[lang_name]
|
|
|
|
|
|
|
|
|
166 |
|
167 |
user_model = download(lang_code, "./data")
|
168 |
tts = TTS(user_model)
|
|
|
162 |
|
163 |
|
164 |
def mms_tts(Input_Text, lang_name="Burmese (mya)"):
|
165 |
+
# lang_code = lang_codes[lang_name]
|
166 |
+
try:
|
167 |
+
lang_code = lang_codes[lang_name]
|
168 |
+
except KeyError:
|
169 |
+
lang_code = "mya"
|
170 |
|
171 |
user_model = download(lang_code, "./data")
|
172 |
tts = TTS(user_model)
|