mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-18 06:24:20 +01:00
Remove voice_settings parameters
I removed the voice_settings parameters as it was an irrelevant change.
This commit is contained in:
@@ -22,7 +22,7 @@ queue_semaphore = Semaphore(1) # The amount of sounds to queue before blocking t
|
|||||||
def eleven_labs_speech(text, voice_index=0):
|
def eleven_labs_speech(text, voice_index=0):
|
||||||
tts_url = "https://api.elevenlabs.io/v1/text-to-speech/{voice_id}".format(
|
tts_url = "https://api.elevenlabs.io/v1/text-to-speech/{voice_id}".format(
|
||||||
voice_id=voices[voice_index])
|
voice_id=voices[voice_index])
|
||||||
formatted_message = {"text": text, "voice_settings": {"stability": 0.05, "similarity_boost": 0.8}}
|
formatted_message = {"text": text}
|
||||||
response = requests.post(
|
response = requests.post(
|
||||||
tts_url, headers=tts_headers, json=formatted_message)
|
tts_url, headers=tts_headers, json=formatted_message)
|
||||||
|
|
||||||
@@ -59,4 +59,4 @@ def say_text(text, voice_index=0):
|
|||||||
|
|
||||||
queue_semaphore.acquire(True)
|
queue_semaphore.acquire(True)
|
||||||
thread = threading.Thread(target=speak)
|
thread = threading.Thread(target=speak)
|
||||||
thread.start()
|
thread.start()
|
||||||
|
|||||||
Reference in New Issue
Block a user