diff --git a/rtcllm/vad.py b/rtcllm/vad.py index b5e3b79..d6bc5eb 100644 --- a/rtcllm/vad.py +++ b/rtcllm/vad.py @@ -139,7 +139,7 @@ class AudioTrackVad(MediaStreamTrack): return fs def frames_write_wave(self, frames): - fb = [ self.frame2btyes(f) for f in frames ] + fb = [ self.frame2bytes(f) for f in frames ] ndarr = np.frombuffer(b''.join(fb), dtype=np.int16) fn = temp_file(suffix='.wav') write(fn, frames[0].sample_rate, ndarr)