feat(azure_voice.py): improve error logging in textToVoice method

This commit is contained in:
lanvent
2023-04-19 00:51:52 +08:00
parent de33911460
commit a83e5a9b65

View File

@@ -83,6 +83,10 @@ class AzureVoice(Voice):
)
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