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):