From a9d513ba56ead640545ab454d30522f9e73f6459 Mon Sep 17 00:00:00 2001 From: rany Date: Thu, 10 Jun 2021 20:55:40 +0300 Subject: [PATCH] Fix broken regular text --- setup.cfg | 2 +- src/edgeTTS/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index 869fc2e..e979dac 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = edge-tts -version = 2.0.7 +version = 2.0.8 author = rany author_email = ranygh@riseup.net description = Microsoft Edge's TTS diff --git a/src/edgeTTS/__init__.py b/src/edgeTTS/__init__.py index 8ecb555..e5c6e45 100755 --- a/src/edgeTTS/__init__.py +++ b/src/edgeTTS/__init__.py @@ -127,7 +127,7 @@ class Communicate: if not customspeak: wsmax = 2 ** 16 overhead = len(self.mkssmlmsg("", voice, pitch, rate, volume, customspeak=False).encode('utf-8')) - msgs = _minimize(escape(removeIncompatibleControlChars(msg)), b" ", wsmax - overhead) + msgs = _minimize(escape(removeIncompatibleControlChars(msgs)), b" ", wsmax - overhead) else: if type(msgs) is str: msgs = [msgs]