Twelve2five commited on
Commit
30a17b1
·
verified ·
1 Parent(s): d37b18e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -50,11 +50,9 @@ deepseek_client = DeepSeekAPI(api_key=os.getenv("DEEPSEEK_API_KEY"))
50
  tts_client = ElevenLabs(api_key=os.getenv("ELEVENLABS_API_KEY"))
51
  stt_model = get_stt_model()
52
 
53
- # Get Twilio TURN credentials
54
- twilio_credentials = get_twilio_turn_credentials(
55
- account_sid=os.getenv("TWILIO_ACCOUNT_SID"),
56
- auth_token=os.getenv("TWILIO_AUTH_TOKEN")
57
- )
58
 
59
  # Log Twilio status
60
  if twilio_credentials:
@@ -89,7 +87,7 @@ def response(
89
 
90
  for chunk in tts_client.text_to_speech.convert_as_stream(
91
  text=response_text,
92
- voice_id="Antoni", # Changed to Antoni, a default voice
93
  model_id="eleven_multilingual_v2",
94
  output_format="pcm_24000",
95
  ):
 
50
  tts_client = ElevenLabs(api_key=os.getenv("ELEVENLABS_API_KEY"))
51
  stt_model = get_stt_model()
52
 
53
+ # Set up Twilio credentials for WebRTC
54
+ # The function doesn't accept keyword arguments, it reads from env vars directly
55
+ twilio_credentials = get_twilio_turn_credentials()
 
 
56
 
57
  # Log Twilio status
58
  if twilio_credentials:
 
87
 
88
  for chunk in tts_client.text_to_speech.convert_as_stream(
89
  text=response_text,
90
+ voice_id="JBFqnCBsd6RMkjVDRZzb",
91
  model_id="eleven_multilingual_v2",
92
  output_format="pcm_24000",
93
  ):