Update app.py
Browse files
app.py
CHANGED
|
@@ -44,7 +44,7 @@ def generate_speech(name, input_text):
|
|
| 44 |
history_openai_format.append({"role": "assistant", "content": message_content})
|
| 45 |
|
| 46 |
# Use ElevenLabs TTS API settings and request for the latest assistant response
|
| 47 |
-
url = "https://api.elevenlabs.io/v1/text-to-speech/eIH76iW9yjOWnOKIkd6y/stream"
|
| 48 |
headers = {
|
| 49 |
"Accept": "audio/mpeg",
|
| 50 |
"Content-Type": "application/json",
|
|
|
|
| 44 |
history_openai_format.append({"role": "assistant", "content": message_content})
|
| 45 |
|
| 46 |
# Use ElevenLabs TTS API settings and request for the latest assistant response
|
| 47 |
+
url = "https://api.elevenlabs.io/v1/text-to-speech/eIH76iW9yjOWnOKIkd6y/stream?optimize_streaming_latency=3"
|
| 48 |
headers = {
|
| 49 |
"Accept": "audio/mpeg",
|
| 50 |
"Content-Type": "application/json",
|