[求助]关于远场拾音问题

作者: HughKyle创建于 2026年4月29日更新于 2026年9月6日

def release_conn_resources(conn): # ================= Very important: safely close the WAV file ================= if hasattr(conn, "debug_wav_file") and conn.debug_wav_file is not None: try: conn.debug_wav_file.close() logger.bind(tag=TAG).info("The WAV recording file has been saved and closed. You can play it from the root directory!") except Exception as e: logger.bind(tag=TAG).error(f"Failed to close the WAV file: {e}") # ==========================================================

内容来源: xinnan-tech/xiaozhi-esp32-server