Update TTS/elevenlabs.py

Co-authored-by: Simon <65854503+OpenSourceSimon@users.noreply.github.com>
pull/1619/head
liamb13 2 years ago committed by GitHub
parent 473dacdbfc
commit 270e725e40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -25,9 +25,6 @@ class elevenlabs:
if random_voice:
voice = self.randomvoice()
else:
if not settings.config["settings"]["tts"]["elevenlabs_voice_name"]:
print(f"Please set the config variable ELEVENLABS_VOICE_NAME to a valid voice. options are: {voices}. Using random voice.")
voice = self.randomvoice()
else:
voice = str(
settings.config["settings"]["tts"]["elevenlabs_voice_name"]

Loading…
Cancel
Save