changed regex splitter

pull/523/head
Jason 2 years ago
parent e96a4a5859
commit bb2e02288f

@ -68,7 +68,7 @@ class POLLY:
except KeyError: except KeyError:
if response.json()['error'] == 'Text length is too long!': if response.json()['error'] == 'Text length is too long!':
chunks = [ 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 = [] audio_clips = []

Loading…
Cancel
Save