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: