This commit is contained in:
yumoqing 2024-09-18 16:29:18 +08:00
parent 4944df6e9d
commit e940467a2b

View File

@ -146,7 +146,7 @@ class AudioTrackVad(MediaStreamTrack):
def stop(self):
self.running = False
def to16000_160_frames(frame):
def to16000_160_frames(self, frame):
frames = resample(frame, sample_rate=16000)
ret_frames = []
for f in frames: