From 20640fd5626aa7ea878b2ed6dad93bb59c84ed91 Mon Sep 17 00:00:00 2001 From: tkhmielnitzky Date: Sun, 19 Jan 2025 15:27:07 +0100 Subject: [PATCH] Add optional random_voice parameter to run method --- TTS/GTTS.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TTS/GTTS.py b/TTS/GTTS.py index bff100f..2e2d530 100644 --- a/TTS/GTTS.py +++ b/TTS/GTTS.py @@ -10,7 +10,7 @@ class GTTS: self.max_chars = 5000 self.voices = [] - def run(self, text, filepath): + def run(self, text, filepath, random_voice: bool = False): tts = gTTS( text=text, lang=settings.config["reddit"]["thread"]["post_lang"] or "en",