This commit is contained in:
yumoqing 2024-09-14 15:20:11 +08:00
parent 24a0ddb28d
commit 9ea44d5a5d

View File

@ -106,7 +106,7 @@ class AudioTrackVad(MediaStreamTrack):
ret = await self.write_wave() ret = await self.write_wave()
await self.onvoiceend(ret) await self.onvoiceend(ret)
else: else:
print(f'{duration=} {self.onvoiceend=}') print(f'vad sound {duration=}')
self.ring_buffer.clear() self.ring_buffer.clear()
self.voiced_frames = [] self.voiced_frames = []