From b7b8e59e9ea0a950ce9e611fcb882f511b91c1d5 Mon Sep 17 00:00:00 2001 From: Louis Jordan Date: Thu, 19 Dec 2024 16:57:17 +0000 Subject: [PATCH] feat: set auto_mode=true - ElevenLabs tts WSS --- src/pipecat/services/elevenlabs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipecat/services/elevenlabs.py b/src/pipecat/services/elevenlabs.py index 011c64308..e5310003b 100644 --- a/src/pipecat/services/elevenlabs.py +++ b/src/pipecat/services/elevenlabs.py @@ -312,7 +312,7 @@ async def _connect_websocket(self): voice_id = self._voice_id model = self.model_name output_format = self._settings["output_format"] - url = f"{self._url}/v1/text-to-speech/{voice_id}/stream-input?model_id={model}&output_format={output_format}" + url = f"{self._url}/v1/text-to-speech/{voice_id}/stream-input?model_id={model}&output_format={output_format}&auto_mode=true" if self._settings["optimize_streaming_latency"]: url += f"&optimize_streaming_latency={self._settings['optimize_streaming_latency']}"