From 709468d281ad2afe4a215e24fa639e0bb47f625a Mon Sep 17 00:00:00 2001 From: lanvent Date: Sun, 26 Mar 2023 14:58:20 +0800 Subject: [PATCH] fix: wechaty voice_to_text --- channel/wechat/wechaty_channel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channel/wechat/wechaty_channel.py b/channel/wechat/wechaty_channel.py index d9f6c2d..ea23d91 100644 --- a/channel/wechat/wechaty_channel.py +++ b/channel/wechat/wechaty_channel.py @@ -118,7 +118,7 @@ class WechatyChannel(Channel): converter_state = "false" # 转换wav失败 logger.info("[WX]receive voice converter: " + converter_state) # 语音识别为文本 - query = super().build_voice_to_text(wav_file) + query = super().build_voice_to_text(wav_file).content # 交验关键字 match_prefix = self.check_prefix(query, conf().get('single_chat_prefix')) if match_prefix is not None: