Skip to content

Commit

Permalink
Merge pull request #2206 from VanJohnPK/master
Browse files Browse the repository at this point in the history
fix azure voice error 修复Azure语音服务报错问题
  • Loading branch information
Saboteur7 authored Aug 29, 2024
2 parents f4f55d5 + d347905 commit 469524e
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 469524e

Please sign in to comment.