From 2f5b0ca490090c1fdfa6a6f539f396ee7bcd48dd Mon Sep 17 00:00:00 2001 From: Simon Woker Date: Mon, 18 Jul 2022 16:43:39 +0200 Subject: [PATCH 1/3] fix AWS_Polly TTS max_chars previously aws TTS did not read out comments correctly and only made weird sounds with super short mp3s. This fixes the problem and allows the full comment to be read. --- TTS/aws_polly.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TTS/aws_polly.py b/TTS/aws_polly.py index efd762b..1f20ed4 100644 --- a/TTS/aws_polly.py +++ b/TTS/aws_polly.py @@ -26,7 +26,7 @@ voices = [ class AWSPolly: def __init__(self): - self.max_chars = 0 + self.max_chars = 100000 self.voices = voices def run(self, text, filepath, random_voice: bool = False): From 85beecae20c1c0f874ffb90fac63d43c50ccbdde Mon Sep 17 00:00:00 2001 From: Simon Woker Date: Tue, 19 Jul 2022 17:47:25 +0200 Subject: [PATCH 2/3] use correct max_chars for synchronous api call --- TTS/aws_polly.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TTS/aws_polly.py b/TTS/aws_polly.py index 1f20ed4..eac5884 100644 --- a/TTS/aws_polly.py +++ b/TTS/aws_polly.py @@ -26,7 +26,7 @@ voices = [ class AWSPolly: def __init__(self): - self.max_chars = 100000 + self.max_chars = 3000 self.voices = voices def run(self, text, filepath, random_voice: bool = False): From 1685b55e6c0fa2538c7dbd29e41b02d18238040c Mon Sep 17 00:00:00 2001 From: Simon Woker Date: Wed, 20 Jul 2022 09:39:54 +0200 Subject: [PATCH 3/3] add max_chars to GTTS, fixing #1036 --- TTS/GTTS.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TTS/GTTS.py b/TTS/GTTS.py index 31e29df..cef1b24 100644 --- a/TTS/GTTS.py +++ b/TTS/GTTS.py @@ -8,7 +8,7 @@ max_chars = 0 class GTTS: def __init__(self): - self.max_chars = 0 + self.max_chars = 5000 self.voices = [] def run(self, text, filepath):