Merge branch 'fix_tts_random_voice'

pull/2240/head
tkhmielnitzky 8 months ago
commit d1132f7a5d

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

Loading…
Cancel
Save