fix: asr识别缺字现象,去除无用的变量

This commit is contained in:
Sakura-RanChen
2025-08-20 16:22:32 +08:00
parent 74826c1c59
commit 0ea18d87a3
3 changed files with 3 additions and 21 deletions
@@ -33,8 +33,8 @@ class VADProvider(VADProviderBase):
int(min_silence_duration_ms) if min_silence_duration_ms else 1000
)
# 至少要多少帧才算有语音
self.frame_window_threshold = 3
# 至少要多少帧才算有语音,增加灵敏度
self.frame_window_threshold = 1
def is_vad(self, conn, opus_packet):
try: