Skip to content

Commit 469524e

Browse files
authored
Merge pull request #2206 from VanJohnPK/master
fix azure voice error 修复Azure语音服务报错问题
2 parents f4f55d5 + d347905 commit 469524e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

voice/azure/azure_voice.py

Lines changed: 1 addition & 1 deletion
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)