fix: fix drift

This commit is contained in:
Abhishek Kumar 2026-05-12 18:39:11 +05:30
parent 114320a341
commit 95390fe95b
2 changed files with 5 additions and 5 deletions

View file

@ -250,9 +250,9 @@ def create_tts_service(user_config, audio_config: "AudioConfig"):
# ElevenLabs TTS uses WebSocket. Users configure base_url with an HTTP
# scheme (matching ElevenLabs documentation, e.g.
# https://api.eu.residency.elevenlabs.io); rewrite it to the WS scheme.
elevenlabs_url = user_config.tts.base_url.replace(
"https://", "wss://"
).replace("http://", "ws://")
elevenlabs_url = user_config.tts.base_url.replace("https://", "wss://").replace(
"http://", "ws://"
)
return ElevenLabsTTSService(
reconnect_on_error=False,
api_key=user_config.tts.api_key,