Skip to content

Commit 02395fe

Browse files
committed
Switch noise cancellation to ai-coustics QUAIL_VF_L
Use ai-coustics Voice Focus for non-SIP participants, which has significantly lower word error rate (11.8%) compared to Krisp BVC (23.5%). Keeps Krisp BVCTelephony for SIP participants.
1 parent 4290d10 commit 02395fe

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ requires-python = ">=3.10, <3.15"
1010

1111
dependencies = [
1212
"livekit-agents[silero,turn-detector]~=1.4",
13+
"livekit-plugins-ai-coustics",
1314
"livekit-plugins-noise-cancellation~=0.2",
1415
"python-dotenv",
1516
]

src/agent.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
inference,
1313
room_io,
1414
)
15-
from livekit.plugins import noise_cancellation, silero
15+
from livekit.plugins import ai_coustics, noise_cancellation, silero
1616
from livekit.plugins.turn_detector.multilingual import MultilingualModel
1717

1818
logger = logging.getLogger("agent")
@@ -115,7 +115,9 @@ async def my_agent(ctx: JobContext):
115115
noise_cancellation.BVCTelephony()
116116
if params.participant.kind
117117
== rtc.ParticipantKind.PARTICIPANT_KIND_SIP
118-
else noise_cancellation.BVC()
118+
else ai_coustics.audio_enhancement(
119+
model=ai_coustics.EnhancerModel.QUAIL_VF_L
120+
)
119121
),
120122
),
121123
),

0 commit comments

Comments
 (0)