This commit is contained in:
yumoqing 2024-09-14 15:16:25 +08:00
parent 59f59d7d66
commit 7c2768caa2

View File

@ -126,7 +126,7 @@ class AudioTrackVad(MediaStreamTrack):
def voice_duration(self): def voice_duration(self):
duration = 0 duration = 0
[ f.samples * 1000 / f.sample_rate + duration for f in self.self.voiced_frames ] [ f.samples * 1000 / f.sample_rate + duration for f in self.voiced_frames ]
return duration return duration
async def write_wave(self): async def write_wave(self):