瀏覽代碼

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

develop
lanvent 1 年之前
父節點
當前提交
a83e5a9b65
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. +5
    -1
      voice/azure/azure_voice.py

+ 5
- 1
voice/azure/azure_voice.py 查看文件

@@ -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

Loading…
取消
儲存