Fix potential bug
This commit is contained in:
@@ -122,7 +122,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))
|
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(msg)), b" ", wsmax - overhead)
|
||||||
|
|
||||||
async with websockets.connect(
|
async with websockets.connect(
|
||||||
|
|||||||
Reference in New Issue
Block a user