changed regex splitter

This commit is contained in:
Jason committed 2022-06-16 17:51:42 -04:00
1 parent e96a4a5859
commit bb2e02288f
1 file changed
+1 -1
+1 -1
View File
@@ -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 = []