修复接语音回复失效的问题

This commit is contained in:
chenzhenkun
2023-09-14 17:52:11 +08:00
parent ac4adac29e
commit ca25d0433f
2 changed files with 9 additions and 0 deletions

View File

@@ -69,6 +69,12 @@ def c2c_download_and_convert(wework, message, file_name):
wav_file = base_name + ".wav"
pilk.silk_to_wav(save_path, wav_file, rate=24000)
# 删除SILK文件
try:
os.remove(save_path)
except Exception as e:
pass
class WeworkMessage(ChatMessage):
def __init__(self, wework_msg, wework, is_group=False):