From a83e5a9b6589bd00e5c352b695852e491e038787 Mon Sep 17 00:00:00 2001 From: lanvent Date: Wed, 19 Apr 2023 00:51:52 +0800 Subject: [PATCH] feat(azure_voice.py): improve error logging in textToVoice method --- voice/azure/azure_voice.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/voice/azure/azure_voice.py b/voice/azure/azure_voice.py index 9317b83..8b45a87 100644 --- a/voice/azure/azure_voice.py +++ b/voice/azure/azure_voice.py @@ -83,6 +83,10 @@ def textToVoice(self, text): ) reply = Reply(ReplyType.VOICE, fileName) else: - logger.error("[Azure] textToVoice error, result={}".format(result)) + logger.error( + "[Azure] textToVoice error, result={}, canceldetails={}".format( + result, result.cancellation_details + ) + ) reply = Reply(ReplyType.ERROR, "抱歉,语音合成失败") return reply