We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1ec4f2 commit 3eb2c81Copy full SHA for 3eb2c81
src/agent.py
@@ -107,10 +107,9 @@ async def my_agent(ctx: JobContext):
107
await session.start(
108
agent=Assistant(),
109
room=ctx.room,
110
- room_options=room_io.RoomOptions(
+room_options=room_io.RoomOptions(
111
audio_input=room_io.AudioInputOptions(
112
- # For telephony applications, use `BVCTelephony` for best results
113
- noise_cancellation=noise_cancellation.BVC(),
+ noise_cancellation=lambda params: noise_cancellation.BVCTelephony() if params.participant.kind == rtc.ParticipantKind.PARTICIPANT_KIND_SIP else noise_cancellation.BVC(),
114
),
115
116
)
0 commit comments