Cordova是否支持webkitSpeechRecognition? [英] Is webkitSpeechRecognition supported on Cordova?

查看:92
本文介绍了Cordova是否支持webkitSpeechRecognition?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望将语音识别添加到基于Cordova的应用程序中.看来iOS和Android应用程序均未定义window.webkitSpeechRecognition.

I am looking to add speech recognition to a Cordova-based app. It appears that window.webkitSpeechRecognition is undefined for both iOS and Android applications.

我可以在Android设备上的标准Chrome中使用webkitSpeechRecognition,但是与Cordova打包后无法使用.

I am able to use webkitSpeechRecognition within standard Chrome on the Android device, but it does not work when packaged with Cordova.

是否可以启用webkitSpeechRecognition或在iOS和/或Android上与之相当的功能?

Is there a way to enable webkitSpeechRecognition or something comparable on iOS and/or Android?

推荐答案

不是真正的Cordova功能,而是UIWebView和WebView底层WebKit.根据 http://caniuse.com/#search=web%20speech , Android上不支持API(我会再次确认),iOS上部分支持API,但API名称以webkit

Not really a Cordova feature but UIWebView and WebView underlying WebKits. According tohttp://caniuse.com/#search=web%20speech it seems that the API is not supported on Android (I would double check that) and is partially supported on iOS but the API name is prefixed with webkit

这篇关于Cordova是否支持webkitSpeechRecognition?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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