Skip to content

armgit / meet

Public Imported from GitHub
0

Open source video conferencing app powered by LiveKit. Built with Django and React.

♻️(agents) replace deprecated room options API

leo3537fdf648fa
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 45fa9ab5..953328b5 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -17,6 +17,7 @@ and this project adheres to
- 🐛(agents) fix bug when closing metadata-collector
- ⬆️(dependencies) update python dependencies
- ⬆️(frontend) update js dependencies
+- ♻️(agents) replace deprecated room options API
### Fixed
diff --git a/src/agents/metadata_collector.py b/src/agents/metadata_collector.py
index 9d6fb64c..24b51500 100644
--- a/src/agents/metadata_collector.py
+++ b/src/agents/metadata_collector.py
@@ -19,13 +19,14 @@ from livekit.agents import (
JobContext,
JobProcess,
JobRequest,
- RoomInputOptions,
RoomIO,
- RoomOutputOptions,
WorkerPermissions,
cli,
utils,
)
+from livekit.agents import (
+ room_io as lk_room_io,
+)
from livekit.plugins import silero
from minio import Minio
from minio.error import S3Error
@@ -302,13 +303,11 @@ class MetadataCollector:
agent_session=session,
room=self.ctx.room,
participant=participant,
- input_options=RoomInputOptions(
- audio_enabled=True,
- text_enabled=False,
- ),
- output_options=RoomOutputOptions(
- audio_enabled=False,
- transcription_enabled=False,
+ options=lk_room_io.RoomOptions(
+ audio_input=lk_room_io.AudioInputOptions(),
+ text_input=False,
+ audio_output=False,
+ text_output=False,
),
)