Skip to content

Commit

Permalink
fix: wechaty voice_to_text
Browse files Browse the repository at this point in the history
  • Loading branch information
lanvent committed Mar 26, 2023
1 parent c3a2bd7 commit 709468d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion channel/wechat/wechaty_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ async def on_message(self, msg: Message):
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:
Expand Down

0 comments on commit 709468d

Please sign in to comment.