Fix broken regular text
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
name = edge-tts
|
name = edge-tts
|
||||||
version = 2.0.7
|
version = 2.0.8
|
||||||
author = rany
|
author = rany
|
||||||
author_email = ranygh@riseup.net
|
author_email = ranygh@riseup.net
|
||||||
description = Microsoft Edge's TTS
|
description = Microsoft Edge's TTS
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ class Communicate:
|
|||||||
if not customspeak:
|
if not customspeak:
|
||||||
wsmax = 2 ** 16
|
wsmax = 2 ** 16
|
||||||
overhead = len(self.mkssmlmsg("", voice, pitch, rate, volume, customspeak=False).encode('utf-8'))
|
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:
|
else:
|
||||||
if type(msgs) is str:
|
if type(msgs) is str:
|
||||||
msgs = [msgs]
|
msgs = [msgs]
|
||||||
|
|||||||
Reference in New Issue
Block a user