Skip to content

Commit 3effd5a

Browse files
author
Zheng
committed
fix azure voice error
1 parent 000c202 commit 3effd5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

voice/azure/azure_voice.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def voiceToText(self, voice_file):
6565
reply = Reply(ReplyType.TEXT, result.text)
6666
else:
6767
cancel_details = result.cancellation_details
68-
logger.error("[Azure] voiceToText error, result={}, errordetails={}".format(result, cancel_details.error_details))
68+
logger.error("[Azure] voiceToText error, result={}, errordetails={}".format(result, cancel_details))
6969
reply = Reply(ReplyType.ERROR, "抱歉,语音识别失败")
7070
return reply
7171

0 commit comments

Comments
 (0)