mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-06-02 00:57:41 +08:00
fix: voice length bug in wechaty
This commit is contained in:
@@ -72,7 +72,7 @@ class WechatyChannel(ChatChannel):
|
||||
voiceLength = None
|
||||
file_path = reply.content
|
||||
sil_file = os.path.splitext(file_path)[0] + '.sil'
|
||||
voiceLength = any_to_sil(file_path, sil_file)
|
||||
voiceLength = int(any_to_sil(file_path, sil_file))
|
||||
# 发送语音
|
||||
t = int(time.time())
|
||||
msg = FileBox.from_file(sil_file, name=str(t) + '.sil')
|
||||
|
||||
Reference in New Issue
Block a user