Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

Fix StreamElements TTS (#5146)

NeonN3mesis78a620c1ec27
diff --git a/autogpt/speech/stream_elements_speech.py b/autogpt/speech/stream_elements_speech.py
index 8d2c51cc24..1be69270d6 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: