From 3effd5afd14334ed6fb7f18d3edf175b1aa8fdd6 Mon Sep 17 00:00:00 2001 From: Zheng Date: Tue, 30 Jul 2024 17:10:02 +0800 Subject: [PATCH] fix azure voice error --- voice/azure/azure_voice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/voice/azure/azure_voice.py b/voice/azure/azure_voice.py index b5884ed..b0ec8b8 100644 --- a/voice/azure/azure_voice.py +++ b/voice/azure/azure_voice.py @@ -65,7 +65,7 @@ class AzureVoice(Voice): 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