mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-07-21 22:27:13 +08:00
feat(azure_voice.py): improve error logging in textToVoice method
This commit is contained in:
@@ -83,6 +83,10 @@ class AzureVoice(Voice):
|
|||||||
)
|
)
|
||||||
reply = Reply(ReplyType.VOICE, fileName)
|
reply = Reply(ReplyType.VOICE, fileName)
|
||||||
else:
|
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, "抱歉,语音合成失败")
|
reply = Reply(ReplyType.ERROR, "抱歉,语音合成失败")
|
||||||
return reply
|
return reply
|
||||||
|
|||||||
Reference in New Issue
Block a user