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