From 39110370f452c13509da319e597a9504ca1e05a2 Mon Sep 17 00:00:00 2001 From: jayesh Date: Sat, 11 Jan 2025 15:50:12 +0530 Subject: [PATCH] addressing sdk update --- .../livekit/plugins/google/beta/realtime/realtime_api.py | 2 +- .../livekit/plugins/google/beta/realtime/transcriber.py | 2 +- livekit-plugins/livekit-plugins-google/setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/livekit-plugins/livekit-plugins-google/livekit/plugins/google/beta/realtime/realtime_api.py b/livekit-plugins/livekit-plugins-google/livekit/plugins/google/beta/realtime/realtime_api.py index e39ceef5e..2e706f35b 100644 --- a/livekit-plugins/livekit-plugins-google/livekit/plugins/google/beta/realtime/realtime_api.py +++ b/livekit-plugins/livekit-plugins-google/livekit/plugins/google/beta/realtime/realtime_api.py @@ -381,7 +381,7 @@ async def _main_task(self): @utils.log_exceptions(logger=logger) async def _send_task(): async for msg in self._send_ch: - await self._session.send(msg) + await self._session.send(input=msg) await self._session.send(".", end_of_turn=True) diff --git a/livekit-plugins/livekit-plugins-google/livekit/plugins/google/beta/realtime/transcriber.py b/livekit-plugins/livekit-plugins-google/livekit/plugins/google/beta/realtime/transcriber.py index e17a7908b..89bc243dc 100644 --- a/livekit-plugins/livekit-plugins-google/livekit/plugins/google/beta/realtime/transcriber.py +++ b/livekit-plugins/livekit-plugins-google/livekit/plugins/google/beta/realtime/transcriber.py @@ -85,7 +85,7 @@ async def _main_task(self): @utils.log_exceptions(logger=logger) async def _send_task(): async for msg in self._send_ch: - await self._session.send(msg) + await self._session.send(input=msg) @utils.log_exceptions(logger=logger) async def _recv_task(): diff --git a/livekit-plugins/livekit-plugins-google/setup.py b/livekit-plugins/livekit-plugins-google/setup.py index 0db8addce..b3f6adf0d 100644 --- a/livekit-plugins/livekit-plugins-google/setup.py +++ b/livekit-plugins/livekit-plugins-google/setup.py @@ -51,7 +51,7 @@ "google-auth >= 2, < 3", "google-cloud-speech >= 2, < 3", "google-cloud-texttospeech >= 2, < 3", - "google-genai >= 0.3.0", + "google-genai == 0.4.0", "livekit-agents>=0.12.3", ], package_data={"livekit.plugins.google": ["py.typed"]},