This commit is contained in:
yumoqing 2024-09-14 15:11:06 +08:00
parent 0d2b45ca72
commit 0e3204c73e

View File

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