From 7c2768caa2eb8e33145203bd2c383b5521092128 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sat, 14 Sep 2024 15:16:25 +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 08a26d9..555bde8 100644 --- a/rtcllm/vad.py +++ b/rtcllm/vad.py @@ -126,7 +126,7 @@ class AudioTrackVad(MediaStreamTrack): def voice_duration(self): duration = 0 - [ f.samples * 1000 / f.sample_rate + duration for f in self.self.voiced_frames ] + [ f.samples * 1000 / f.sample_rate + duration for f in self.voiced_frames ] return duration async def write_wave(self):