Skip to content

Commit

Permalink
fix azure voice error
Browse files Browse the repository at this point in the history
  • Loading branch information
Zheng committed Jul 30, 2024
1 parent 000c202 commit 3effd5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion voice/azure/azure_voice.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def voiceToText(self, voice_file):
reply = Reply(ReplyType.TEXT, result.text)
else:
cancel_details = result.cancellation_details
logger.error("[Azure] voiceToText error, result={}, errordetails={}".format(result, cancel_details.error_details))
logger.error("[Azure] voiceToText error, result={}, errordetails={}".format(result, cancel_details))
reply = Reply(ReplyType.ERROR, "抱歉,语音识别失败")
return reply

Expand Down

0 comments on commit 3effd5a

Please sign in to comment.