From 0cbd2bb3d03a18dd6da6cc4db2a15ab717c36b57 Mon Sep 17 00:00:00 2001 From: Dylan Date: Thu, 6 Apr 2023 11:59:46 +0200 Subject: [PATCH] Fix voice_index not being used --- scripts/speak.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/speak.py b/scripts/speak.py index f98a9f445d..6a966efc37 100644 --- a/scripts/speak.py +++ b/scripts/speak.py @@ -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() \ No newline at end of file