Add optional random_voice parameter to run method

pull/2235/head
tkhmielnitzky 8 months ago
parent 3d4c34d60c
commit 20640fd562

@ -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",

Loading…
Cancel
Save