Skip to content

Commit

Permalink
feat(azure_voice.py): improve error logging in textToVoice method
Browse files Browse the repository at this point in the history
  • Loading branch information
lanvent committed Apr 18, 2023
1 parent de33911 commit a83e5a9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion voice/azure/azure_voice.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a83e5a9

Please sign in to comment.