diff --git a/app.py b/app.py index ea1c468..ca5f63b 100644 --- a/app.py +++ b/app.py @@ -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: