Fix error message

This commit is contained in:
litagin
2023-07-18 14:53:11 +09:00
parent 212b992823
commit f72473353f

8
app.py
View File

@@ -206,9 +206,11 @@ def tts(
(tgt_sr, audio_opt),
)
except EOFError:
info = """
It seems that edge-tts output is empty. This may occur when the input text and the speaker do not match.
For example, maybe you entered Japanese (without alphabets) text but chose non-Japanese speaker?"""
info =(
"It seems that the edge-tts output is not valid. "
"This may occur when the input text and the speaker do not match. "
"For example, maybe you entered Japanese (without alphabets) text but chose non-Japanese speaker?"
)
print(info)
return info, None, None
except: