openwechat
openwechat copied to clipboard
如何解析语音消息?
哪位大佬能告诉我怎么解析语音消息吗? 怎么将收到的语音消息解析为文本?
msg.GetVoice()
解析response body
您好!邮件已收到,谢谢您!祝您生活愉快,工作顺利!
msg.GetVoice()
解析response body
您好 相同疑问 如何解析vioce和video 的消息体 谢谢
res, err := ctx.GetVoice() mp3, err := io.ReadAll(res.Body) if err == nil { err = ioutil.WriteFile("/Users/tianwen/Downloads/output.mp3", mp3, 0644) fmt.Println("yes") }