This commit is contained in:
yumoqing 2024-09-18 15:56:40 +08:00
parent 515b107d86
commit 492df342a6

View File

@ -163,7 +163,7 @@ class AudioTrackVad(MediaStreamTrack):
duration = (frame.samples * 1000) / frame.sample_rate
# print(f'{self.__class__.__name__}.recv(): {duration=}, {frame.samples=}, {frame.sample_rate=}')
try:
frames = o16000_160_frames(frame)
frames = to16000_160_frames(frame)
for frame in frames:
await self.vad.vad_check(frame)
except Exception as e: