Fix voice_index not being used

This commit is contained in:
Dylan
2023-04-06 11:59:46 +02:00
parent 73bf928c1d
commit 0cbd2bb3d0

View File

@@ -49,9 +49,9 @@ def say_text(text, voice_index=0):
if not cfg.elevenlabs_api_key:
gtts_speech(text)
else:
success = eleven_labs_speech(text)
success = eleven_labs_speech(text, voice_index)
if not success:
gtts_speech(text)
thread = threading.Thread(target=speak)
thread.start()
thread.start()