From c3be6ef493030c24392aa2f1d2944bbec17e4949 Mon Sep 17 00:00:00 2001 From: rany Date: Tue, 11 May 2021 00:23:14 +0300 Subject: [PATCH] Service can't handle control chars that aren't whitepace. From comment --- edge-tts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edge-tts.py b/edge-tts.py index 115e11c..f149974 100755 --- a/edge-tts.py +++ b/edge-tts.py @@ -81,7 +81,7 @@ if __name__ == "__main__": volumeString = args.volume sentenceBoundaryEnabled = 'True' if args.enable_sentence_boundary else 'False' wordBoundaryEnabled = 'True' if args.disable_word_boundary else 'False' - text = args.text + text = args.text.replace(chr(9), " ").replace(chr(13), " ").replace(chr(32), " ") run_tts() elif args.list_voices is True: list_voices()