简体   繁体   English

jQuery Mobile Phonegap应用程序的文本API语音转换

[英]Speech to text api for jquery mobile phonegap app

The app in question is a phonegap app built using jquery mobile, javascript. 有问题的应用程序是使用JavaScript jQuery mobile构建的phonegap应用程序。 It is meant for both Android and IOS. 它适用于Android和IOS。

I want to have a voice search(voice to text API/plugin) that can work on both the platforms. 我想要一个可以在两个平台上都可以使用的语音搜索(语音到文本API /插件)。

Is there any such API/plugin available? 有没有这样的API /插件? If so then can it be used from within the javascript code? 如果可以,那么可以在javascript代码中使用它吗? ie : is it necessary to write native code in Java/Objective C in Eclipse/Xcode for Android/IOS respectively or can i simply call it from my html page. 即:是否有必要分别在Android / IOS的​​Eclipse / Xcode中的Java / Objective C中编写本机代码,或者我可以直接从html页面中调用它。

I found CMUSphinx but I'm not sure how to use it from within the html pages that constitute the jquery mobile app. 我找到了CMUSphinx,但是我不确定如何从构成jquery移动应用程序的html页面中使用它。

Please help me out with this. 这个你能帮我吗。

The project pocketsphinx.js ( http://syl22-00.github.io/pocketsphinx.js/ ) may help you. 项目pocketsphinx.js( http://syl22-00.github.io/pocketsphinx.js/ )可能会对您有所帮助。 It consists on a port of pocketsphinx to javascript by using emscripten. 它包括使用emscripten到Java的Pocketsphinx端口。

Pro: no network connection needed, no platform dependance 优点:无需网络连接,无需依赖平台

Cons: heavy (naturally you need to embed models), young, and seems to need some fixes 缺点:较重(自然需要嵌入模型),年轻,并且似乎需要修复

But for little needs on phonegap, it can be used. 但是对于电话间隙的需求很少,可以使用它。

Good luck 祝好运

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM