This commit is contained in:
yumoqing 2024-09-14 15:14:31 +08:00
parent 0e3204c73e
commit 59f59d7d66

View File

@ -61,7 +61,7 @@ class AudioTrackVad(MediaStreamTrack):
self.task.cancel() self.task.cancel()
if self.running: if self.running:
self.task = self.loop.call_later(self.frame_duration_ms, self._recv) self.task = self.loop.call_later(self.frame_duration_ms, self._recv)
return f return frame
def resample(self, frame, sample_rate=None): def resample(self, frame, sample_rate=None):
if sample_rate is None: if sample_rate is None: