Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
#
|
54 |
-
|
55 |
-
|
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="
|
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 |
):
|