PhilSpiel commited on
Commit
2fc3b83
·
1 Parent(s): 4b90b9a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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",