From 0e3204c73ebbab84737c1b087b52918f3e6409b9 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sat, 14 Sep 2024 15:11:06 +0800 Subject: [PATCH] bugfix --- rtcllm/vad.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtcllm/vad.py b/rtcllm/vad.py index 56a0da6..2bdf3da 100644 --- a/rtcllm/vad.py +++ b/rtcllm/vad.py @@ -52,7 +52,7 @@ class AudioTrackVad(MediaStreamTrack): duration = (frame.samples * 1000) / frame.sample_rate # print(f'{self.__class__.__name__}.recv(): {duration=}, {frame.samples=}, {frame.sample_rate=}') try: - await self.vad_check(f) + await self.vad_check(frame) except Exception as e: print(f'{e=}') print_exc()