修复语音无法使用

This commit is contained in:
xaoyaoo committed 2024-01-14 19:32:47 +08:00
1 parent 7bb85b402e
commit 97d46a13bd
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -185,6 +185,7 @@ def get_audio(savePath):
if not wave_data:
return ReJson(1001)
# 判断savePath路径的文件夹是否存在
savePath = os.path.join(g.tmp_path, savePath)
if not os.path.exists(os.path.dirname(savePath)):
os.makedirs(os.path.dirname(savePath))
with open(savePath, "wb") as f: