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.

Fixed E302 expected 2 blank lines, found 1

meta-fx161206959440
diff --git a/scripts/speak.py b/scripts/speak.py
index d71b5bcac6..3afa591dd5 100644
--- a/scripts/speak.py
+++ b/scripts/speak.py
@@ -52,6 +52,7 @@ def eleven_labs_speech(text, voice_index=0):
print("Response content:", response.content)
return False
+
def brian_speech(text):
"""Speak text using Brian with the streamelements API"""
tts_url = f"https://api.streamelements.com/kappa/v2/speech?voice=Brian&text={text}"
@@ -69,6 +70,7 @@ def brian_speech(text):
print("Response content:", response.content)
return False
+
def gtts_speech(text):
tts = gtts.gTTS(text)
with mutex_lock: