Open source video conferencing app powered by LiveKit. Built with Django and React.
🔧(agents) make Silero VAD optional
lebaudantoine35b3bcad6349
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex a121b0e7..878197ce 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -11,6 +11,7 @@ and this project adheres to### Added- ✨(summary) add dutch and german languages+- 🔧(agents) make Silero VAD optional### Changeddiff --git a/src/agents/multi-user-transcriber.py b/src/agents/multi-user-transcriber.pyindex 5bd19d62..90ffda39 100644--- a/src/agents/multi-user-transcriber.py+++ b/src/agents/multi-user-transcriber.py@@ -31,6 +31,7 @@ logger = logging.getLogger("transcriber")TRANSCRIBER_AGENT_NAME = os.getenv("TRANSCRIBER_AGENT_NAME", "multi-user-transcriber")STT_PROVIDER = os.getenv("STT_PROVIDER", "deepgram")+ENABLE_SILERO_VAD = os.getenv("ENABLE_SILERO_VAD", "true").lower() == "true"def create_stt_provider():@@ -122,9 +123,8 @@ class MultiUserTranscriber:if participant.identity in self._sessions:return self._sessions[participant.identity]- session = AgentSession(- vad=self.ctx.proc.userdata["vad"],- )+ vad = self.ctx.proc.userdata.get("vad", None)+ session = AgentSession(vad=vad)room_io = RoomIO(agent_session=session,room=self.ctx.room,@@ -193,7 +193,8 @@ async def handle_transcriber_job_request(job_req: JobRequest) -> None:def prewarm(proc: JobProcess):"""Preload voice activity detection model."""- proc.userdata["vad"] = silero.VAD.load()+ if ENABLE_SILERO_VAD:+ proc.userdata["vad"] = silero.VAD.load()if __name__ == "__main__":diff --git a/src/helm/env.d/dev-keycloak/values.meet.yaml.gotmpl b/src/helm/env.d/dev-keycloak/values.meet.yaml.gotmplindex f10745b1..07eff346 100644--- a/src/helm/env.d/dev-keycloak/values.meet.yaml.gotmpl+++ b/src/helm/env.d/dev-keycloak/values.meet.yaml.gotmpl@@ -267,6 +267,7 @@ agents:LIVEKIT_API_KEY: {{ $key }}{{- end }}{{- end }}+ ENABLE_SILERO_VAD: "false"image:repository: localhost:5001/meet-agents