修复Python缩进错误

This commit is contained in:
朱潮 2025-09-20 11:25:32 +08:00
parent b87be1494d
commit 2612ef5b46

View File

@ -276,7 +276,7 @@ class EnergyBasedRecorder:
status = f"录音中... {recording_duration:.1f}s | 能量: {energy:.0f} | 静音: {current_time - self.last_sound_time:.1f}s"
print(f"\r{status}", end='', flush=True)
else:
else:
# 监听模式
if self.is_voice_active(energy):
# 检测到声音,开始录音