Skip to content

Commit a12206c

Browse files
committed
Use ai-coustics in example
1 parent 93242a3 commit a12206c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/play_audio_stream.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import sounddevice as sd
55

66
from livekit import rtc, api
7-
from livekit.plugins import noise_cancellation
7+
from livekit.plugins import ai_coustics
88

99
SAMPLERATE = 48000
1010
BLOCKSIZE = 480 # 10ms chunks at 48kHz
@@ -91,7 +91,7 @@ async def rtc_session(room, queue: asyncio.Queue):
9191
track=track,
9292
sample_rate=SAMPLERATE,
9393
num_channels=1,
94-
noise_cancellation=noise_cancellation.BVC(), # or NC()
94+
noise_cancellation=ai_coustics.audio_enhancement(),
9595
)
9696

9797
print("playing stream")

0 commit comments

Comments
 (0)