Skip to content

Commit

Permalink
fix: syntax error of dify voice (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanfangyuan4396 authored Nov 12, 2024
1 parent 1aa8805 commit d41c06b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion voice/dify/dify_voice.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def voiceToText(self, voice_file):
reply = Reply(ReplyType.TEXT, text)
logger.info("[DIFY VOICE] voiceToText text={} voice file name={}".format(text, voice_file))
except Exception as e:
logger.error("[DIFY VOICE] voiceToText error={}".format(str(e))
logger.error(f"[DIFY VOICE] voiceToText error={e}")
reply = Reply(ReplyType.ERROR, "我暂时还无法听清您的语音,请稍后再试吧~")
return reply

Expand Down

0 comments on commit d41c06b

Please sign in to comment.