简体   繁体   English

Cordova / Phonegap OpenEars语音识别

[英]Cordova/Phonegap OpenEars speech recognition

I am trying including the OpenEars plugin into phonegap/cordova using this plugin https://github.com/karljacuncha/OpenEarsPlugin 我正在尝试使用此插件将OpenEars插件包含到phonegap / cordova中https://github.com/karljacuncha/OpenEarsPlugin

I followed the Readme but i ended up with an error of missing files, all these files are not found :( 我按照自述文件但最终得到了丢失文件的错误,找不到所有这些文件:(

在此输入图像描述

Any help/suggestion on how to integrate the library? 关于如何整合图书馆的任何帮助/建议?

thank you any advice appreciated! 谢谢你的任何建议!

As already mentioned on a comment, new, non-backwards compatible version (2.0) of OpenEars was released on 5th of December in 2014. This of course prevents it from working with old code such as the plugin in this case. 正如评论中已经提到的, OpenEars的新的非向后兼容版本(2.0)于2014年12月5日发布 。这当然会阻止它在这种情况下使用旧代码(如插件)。

Basically there would be two options to get it working: 基本上有两个选项可以让它工作:

  1. Use older version of OpenEars (last one was 1.7.1) but that doesn't seem to be possible as I wasn't able to download it from anywhere after extensive search. 使用较旧版本的OpenEars(最后一个版本是1.7.1),但这似乎不可能,因为我无法在广泛搜索后从任何地方下载它。

  2. Fix the code to work on newest OpenEars. 修复代码以使用最新的OpenEars。 It shouldn't be that hard and the code of plugin is only ~400 lines of code. 它应该不那么难,插件代码只有大约400行代码。 Most of the changes are quite straightforward as described in the upgrade guide . 升级指南中所述,大多数更改都非常简单。 Feel free to fork the project in GitHub or try to contact the original author of that plugin to make the fixes necessary. 随意在GitHub中分叉项目或尝试联系该插件的原始作者以进行必要的修复。

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

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