mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-03-18 12:40:06 +08:00
feat(azure_voice.py): improve error logging in voiceToText method
This commit is contained in:
@@ -66,7 +66,11 @@ class AzureVoice(Voice):
|
||||
)
|
||||
reply = Reply(ReplyType.TEXT, result.text)
|
||||
else:
|
||||
logger.error("[Azure] voiceToText error, result={}".format(result))
|
||||
logger.error(
|
||||
"[Azure] voiceToText error, result={}, canceldetails={}".format(
|
||||
result, result.cancellation_details
|
||||
)
|
||||
)
|
||||
reply = Reply(ReplyType.ERROR, "抱歉,语音识别失败")
|
||||
return reply
|
||||
|
||||
|
||||
Reference in New Issue
Block a user