From 78a620c1ec272c492830d61a709e0100417b9051 Mon Sep 17 00:00:00 2001 From: NeonN3mesis <129052650+NeonN3mesis@users.noreply.github.com> Date: Mon, 28 Aug 2023 12:21:49 -0400 Subject: [PATCH] Fix StreamElements TTS (#5146) --- autogpt/speech/stream_elements_speech.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autogpt/speech/stream_elements_speech.py b/autogpt/speech/stream_elements_speech.py index 8d2c51cc..1be69270 100644 --- a/autogpt/speech/stream_elements_speech.py +++ b/autogpt/speech/stream_elements_speech.py @@ -20,8 +20,10 @@ class StreamElementsSpeech(VoiceBase): def _setup(self, config: Config) -> None: """Setup the voices, API key, etc.""" + self.config = config def _speech(self, text: str, voice: str, _: int = 0) -> bool: + voice = self.config.streamelements_voice """Speak text using the streamelements API Args: