mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-18 06:24:20 +01:00
Apply autopep8 formatting to entire codebase
This commit is contained in:
@@ -11,8 +11,9 @@ tts_headers = {
|
||||
}
|
||||
|
||||
|
||||
def say_text(text, voice_index = 0):
|
||||
tts_url = "https://api.elevenlabs.io/v1/text-to-speech/{voice_id}".format(voice_id=voices[voice_index])
|
||||
def say_text(text, voice_index=0):
|
||||
tts_url = "https://api.elevenlabs.io/v1/text-to-speech/{voice_id}".format(
|
||||
voice_id=voices[voice_index])
|
||||
|
||||
formatted_message = {"text": text}
|
||||
response = requests.post(
|
||||
@@ -27,4 +28,3 @@ def say_text(text, voice_index = 0):
|
||||
else:
|
||||
print("Request failed with status code:", response.status_code)
|
||||
print("Response content:", response.content)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user