From bb2e02288fb15b3d3e426036a9369ed7ca080b48 Mon Sep 17 00:00:00 2001 From: Jason Date: Thu, 16 Jun 2022 17:51:42 -0400 Subject: [PATCH] changed regex splitter --- TTS/POLLY.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TTS/POLLY.py b/TTS/POLLY.py index 4696508..a32510f 100644 --- a/TTS/POLLY.py +++ b/TTS/POLLY.py @@ -68,7 +68,7 @@ class POLLY: except KeyError: if response.json()['error'] == 'Text length is too long!': chunks = [ - m.group().strip() for m in re.finditer(r" *((.{0,540})(\.|.$))", req_text) + m.group().strip() for m in re.finditer(r" *((.{0,530})(\.|.$))", req_text) ] audio_clips = []