首页 新闻 会员 周边 捐助

语音识别出现问题,请高手指点

0
[待解决问题]

大家好,我用科大讯飞 语音听写demo,本地打开vs2013直接运行,没有问题,但是放到服务器上,就出现了

getUserMedia() no longer works on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details.  翻译过来是 getusermedia()不再工作在不安全的根源。要使用此功能,您应该考虑切换应用程序安全的来源,如HTTPS。更多细节见https://goo.gl/rsttgz。

我用的是.net实现的,请各位高手指点啊。

我是老侯的主页 我是老侯 | 初学一级 | 园豆:184
提问于:2017-01-02 19:25
< >
分享
所有回答(3)
0

getUserMedia() no longer works on insecure origins.写得很清楚了。

花飘水流兮 | 园豆:13615 (专家六级) | 2017-01-02 19:28

 高手教教我怎么解决吧!

支持(0) 反对(0) 我是老侯 | 园豆:184 (初学一级) | 2017-01-02 19:33

@我是老侯: 需要 https

支持(0) 反对(0) 码有钱 | 园豆:13 (初学一级) | 2017-01-02 23:39

@我是老侯: 楼上已说...

支持(0) 反对(0) 花飘水流兮 | 园豆:13615 (专家六级) | 2017-01-03 21:59
0

http://www.jianshu.com/p/03a74d489f34在这儿见你这个错误啦,要不你去研究一下。

大水煮鱼 | 园豆:366 (菜鸟二级) | 2017-01-03 08:42
0
If a feature is powerful and not available on HTTP, and you are a developer that needs to keep testing a feature on a server that does not have a valid certificate, you have several options:
  1. localhost is treated as a secure origin over HTTP, so if you're able to run your server from localhost, you should be able to test the feature on that server.
  2. You can run chrome with the --unsafely-treat-insecure-origin-as-secure="http://example.com" flag (replacing "example.com" with the origin you actually want to test), which will treat that origin as secure for this session. Note that you also need to include the --user-data-dir=/test/only/profile/dir to create a fresh testing profile for the flag to work. Note that on Android and ChromeOS this requires having a device with root access/dev mode.
  3. Create a self-signed certificate for temporary testing. This requires advancing through an invalid certificate interstitial, which is generally not recommended, but testing without inputting sensitive information is a reasonable time to do so. Note that because of this interstitial click-through, we highly recommend options (1) and (2) instead, but they are difficult to do on mobile. See this post on setting up a self-signed certificate for a server for more information on how to do this.
去冰三分糖 | 园豆:380 (菜鸟二级) | 2017-01-03 10:04
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册