diff --git a/TTS/POLLY.py b/TTS/POLLY.py index 360f98f..4696508 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,299})(\.|.$))", req_text) + m.group().strip() for m in re.finditer(r" *((.{0,540})(\.|.$))", req_text) ] audio_clips = []