From 72962ef0f6bc63791cee31ba1e67da5761e6cad1 Mon Sep 17 00:00:00 2001 From: linhong <1219772706@qq.com> Date: Sat, 11 Oct 2025 13:04:25 +0800 Subject: [PATCH] bugfix: tmp dir --- api.py | 2 +- tmp/tmp.wav | 0 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 tmp/tmp.wav diff --git a/api.py b/api.py index b912670..46a717e 100644 --- a/api.py +++ b/api.py @@ -47,7 +47,7 @@ async def analyze_audio( - 500: 服务器内部处理异常(返回具体错误信息) """ try: - with tempfile.NamedTemporaryFile(delete=False, suffix=".wav", dir="./data/tmp") as temp_file: + with tempfile.NamedTemporaryFile(delete=False, suffix=".wav", dir="./tmp") as temp_file: temp_file.write(audio_data) temp_file_path = temp_file.name # 将字节数据转换为numpy数组 diff --git a/tmp/tmp.wav b/tmp/tmp.wav new file mode 100644 index 0000000..e69de29