From e12621456ffd6b9a5465ba21cc77be76bffccde7 Mon Sep 17 00:00:00 2001 From: Mayur Sirwani <64443117+mayurdd@users.noreply.github.com> Date: Tue, 9 Dec 2025 18:04:08 -0800 Subject: [PATCH] Adding include_language_detection to Elevenlabs Realtime STT Adding a param to the config while connecting to the session --- src/pipecat/services/elevenlabs/stt.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pipecat/services/elevenlabs/stt.py b/src/pipecat/services/elevenlabs/stt.py index 5fa04d1c1f..c9664a66fe 100644 --- a/src/pipecat/services/elevenlabs/stt.py +++ b/src/pipecat/services/elevenlabs/stt.py @@ -427,6 +427,7 @@ class InputParams(BaseModel): min_silence_duration_ms: Optional[int] = None include_timestamps: bool = False enable_logging: bool = False + include_language_detection: bool = False def __init__( self, @@ -640,6 +641,9 @@ async def _connect_websocket(self): if self._params.enable_logging: params.append(f"enable_logging={str(self._params.enable_logging).lower()}") + if self._params.include_language_detection: + params.append(f"include_language_detection={str(self._params.include_language_detection).lower()}") + # Add VAD parameters if using VAD commit strategy and values are specified if self._params.commit_strategy == CommitStrategy.VAD: if self._params.vad_silence_threshold_secs is not None: