bugfix
This commit is contained in:
parent
515b107d86
commit
492df342a6
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user