Bot Framework可以处理Facebook音频消息
我的机器人(Bot Framework Microsoft)如何处理来自Facebook的音频消息.
How can my bot (Bot Framework Microsoft) handle an audio message from facebook.
如何在MessagesController中的发布消息"中接收到它?这样我可以调用SpeechToText API?
How it's received in the Post Message in MessagesController? So I can call the SpeechToText API?
数据是否一直传到
您的Post控制器将Activity作为参数.音频消息将显示在附件数组中,作为指向Facebook提供的音频位置的链接.您可以将其传递给 Bing Speech API .需要注意的一件事是,Facebook提供的ContentType是"video/mp4"(可能会造成混淆).
Your Post controller takes an Activity as an argument. The Audio message will show up in the Attachment array as a link to the audio location provided by Facebook. You can pass that to the Bing Speech API. One thing to note that the ContentType provided by Facebook is "video/mp4" (which could be confusing).