bugfix: tmp dir
This commit is contained in:
2
api.py
2
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数组
|
||||
|
||||
0
tmp/tmp.wav
Normal file
0
tmp/tmp.wav
Normal file
Reference in New Issue
Block a user