How to enable speech function on Webchat channel in a modern SharePoint Online page?

爷,独闯天下 提交于 2019-12-02 09:36:02

I believe there are a couple things going on here. First, it is an issue with Cross Origin. I'll come back to that in a minute. Secondly, assuming you are using the Browser-provider speech service, that that means you are using Chrome (let me know if that is not the case). The microphone use in iframes was depricated for cross origin. You can change that by adding allow='microphone' attribute to your iframe tag. Please see more here.

I was able to get it working in a simple iframe, outside SPO and using Cross-Origin Resource Sharing. The unfortunate part is that you won't be able to add CORS to your SharePoint Online site for the embed web part.

You might look at using Bing or custom speech services. Otherwise, I think your options are limited to custom pages/parts/app/add-in for SharePoint (if even then).

Edit: Looks like Bing Speech is being deprecated.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!