Google 如何指定 "Ok Google" 作为其 "trigger" 短语?
How does Google specify "Ok Google" as its "trigger" phrase?
基于 questions,该技术似乎是关键字识别。这个问题比较具体。
当 HTML5 语音 API 为 listening/recording 时,选项卡中会出现红色麦克风图标。在 Google 的搜索页面上,红色图标永远不会出现,直到您说出短语 "Ok Google"。
Google 如何在不使用 API 的情况下启用关键字识别?
"Ok Google" 是否内置于 Chrome 中,或者任何人都可以为他们的网站定义这样的触发短语吗?
Is the "Ok Google" built into Chrome
是
or is there a way for anyone to define such a trigger phrase for their site?
没有
了解技术可以查看
https://wiki.inf.ed.ac.uk/twiki/pub/CSTR/ListenSemester2201314/chen2014small.pdf
关键字检测器在 4 万个 "ok google" 示例上进行了训练。如果不对类似数量的示例进行重新训练,就不可能更改短语。
他们可能只是不断地记录并忽略所有内容,直到真正说出 "Ok Google" 为止。因此使用 API.
例如(示例代码,需要更多工作且未测试)
rec = new webkitSpeechRecognition();
if (rec) {
rec.onresult = function(e) {
for (var i = e.resultIndex; i < e.results.length; ++i) {
if (e.results[i].isFinal) {
if (e.results[i][0].transcript.indexOf("Ok Google") > -1) {
// listen for the rest
}
}
}
}
}
我写过类似的东西,你可以 control a video with speech 通过说 "video" 后跟一个命令。
当然 Google 可能做的事情比这要好得多,但如果你想自己实现一些东西,这可能会指引你走上正确的道路。
基于
当 HTML5 语音 API 为 listening/recording 时,选项卡中会出现红色麦克风图标。在 Google 的搜索页面上,红色图标永远不会出现,直到您说出短语 "Ok Google"。
Google 如何在不使用 API 的情况下启用关键字识别?
"Ok Google" 是否内置于 Chrome 中,或者任何人都可以为他们的网站定义这样的触发短语吗?
Is the "Ok Google" built into Chrome
是
or is there a way for anyone to define such a trigger phrase for their site?
没有
了解技术可以查看
https://wiki.inf.ed.ac.uk/twiki/pub/CSTR/ListenSemester2201314/chen2014small.pdf
关键字检测器在 4 万个 "ok google" 示例上进行了训练。如果不对类似数量的示例进行重新训练,就不可能更改短语。
他们可能只是不断地记录并忽略所有内容,直到真正说出 "Ok Google" 为止。因此使用 API.
例如(示例代码,需要更多工作且未测试)
rec = new webkitSpeechRecognition();
if (rec) {
rec.onresult = function(e) {
for (var i = e.resultIndex; i < e.results.length; ++i) {
if (e.results[i].isFinal) {
if (e.results[i][0].transcript.indexOf("Ok Google") > -1) {
// listen for the rest
}
}
}
}
}
我写过类似的东西,你可以 control a video with speech 通过说 "video" 后跟一个命令。
当然 Google 可能做的事情比这要好得多,但如果你想自己实现一些东西,这可能会指引你走上正确的道路。