Merge pull request #2235 from tkhmielnitzk/fix_tts_random_voice

Add optional random_voice parameter to run method
pull/2239/head
Jason Cameron 8 months ago committed by GitHub
commit 4cb394933b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -10,7 +10,7 @@ class GTTS:
self.max_chars = 5000
self.voices = []
def run(self, text, filepath, random_voice=False):
def run(self, text, filepath, random_voice: bool = False):
tts = gTTS(
text=text,
lang=settings.config["reddit"]["thread"]["post_lang"] or "en",

Loading…
Cancel
Save