【问题标题】:SpeechRecognition is not working in firefoxSpeechRecognition 在 Firefox 中不起作用
【发布时间】:2017-02-08 15:30:36
【问题描述】:

我正在尝试测试 firefox 的 webspeech-api,但在控制台中遇到错误提示 ReferenceError: SpeechRecognition is not defined。

我什至在 about:config 中启用了 media.webspeech.recognition.enable 和 media.webspeech.synth.enabled 标志。

有没有办法让 SpeechRecognition 在 firefox 上工作?

【问题讨论】:

标签: javascript firefox speech-recognition webspeech-api


【解决方案1】:

根据 Chris Mills(Mozilla 的高级技术作家)于 2016 年 1 月 21 日发布的 this blog post,你还不能在 FF 的网络环境中使用它...

...因为允许用户授予应用程序使用权限的 UX/UI 尚未实现。

...

这是您可以投票的bug report。

目前,您必须在 chrome 环境(扩展)中才能使用它。


2019 年冬季更新

链接的错误报告已被标记为已修复。

要在 Firefox Nightly > 72 中启用 SpeechRecognition,请转到 about:config 并将标志 media.webspeech.recognition.enable 和 media.webspeech.recognition.force_enable 切换为 true。

但请注意,这是一项在线服务,这意味着您需要互联网连接。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-11-27
    • 2012-02-27
    • 2014-08-23
    • 2013-07-12
    • 2016-06-13
    • 2017-08-19
    • 2015-03-16
    • 1970-01-01
    相关资源
    最近更新 更多