Merge pull request #2181 from rodrigodasilv/develop-GTTS-fix

Fixed GTTS argument error 'random_voice'
pull/2186/head
Jason Cameron 10 months ago committed by GitHub
commit a44f89ba70
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -144,6 +144,13 @@ class TTSEngine:
print("OSError")
def call_tts(self, filename: str, text: str):
if settings.config["settings"]["tts"]["voice_choice"] == "googletranslate":
# GTTS does not have the argument 'random_voice'
self.tts_module.run(
text,
filepath=f"{self.path}/{filename}.mp3",
)
else:
self.tts_module.run(
text,
filepath=f"{self.path}/{filename}.mp3",

Loading…
Cancel
Save