Bot Framework可以处理Facebook音频消息 [英] Can Bot Framework handle Facebook Audio Message

查看:84
本文介绍了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).

这篇关于Bot Framework可以处理Facebook音频消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆