♻️(agents) remove deprecation warning for RoomInput/OutputOptions
Follow LiveKit's recommendations.
This commit is contained in:
committed by
aleb_the_flash
parent
ef09629566
commit
7c690c369e
@@ -14,14 +14,15 @@ from livekit.agents import (
|
|||||||
JobContext,
|
JobContext,
|
||||||
JobProcess,
|
JobProcess,
|
||||||
JobRequest,
|
JobRequest,
|
||||||
RoomInputOptions,
|
|
||||||
RoomIO,
|
RoomIO,
|
||||||
RoomOutputOptions,
|
|
||||||
WorkerOptions,
|
WorkerOptions,
|
||||||
WorkerPermissions,
|
WorkerPermissions,
|
||||||
cli,
|
cli,
|
||||||
utils,
|
utils,
|
||||||
)
|
)
|
||||||
|
from livekit.agents import (
|
||||||
|
room_io as lk_room_io,
|
||||||
|
)
|
||||||
from livekit.plugins import deepgram, silero
|
from livekit.plugins import deepgram, silero
|
||||||
|
|
||||||
load_dotenv()
|
load_dotenv()
|
||||||
@@ -128,12 +129,8 @@ class MultiUserTranscriber:
|
|||||||
agent_session=session,
|
agent_session=session,
|
||||||
room=self.ctx.room,
|
room=self.ctx.room,
|
||||||
participant=participant,
|
participant=participant,
|
||||||
input_options=RoomInputOptions(
|
options=lk_room_io.RoomOptions(
|
||||||
text_enabled=False,
|
text_input=False, audio_output=False, text_output=True
|
||||||
),
|
|
||||||
output_options=RoomOutputOptions(
|
|
||||||
transcription_enabled=True,
|
|
||||||
audio_enabled=False,
|
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
await room_io.start()
|
await room_io.start()
|
||||||
|
|||||||
Reference in New Issue
Block a user