为什么PocketSphinx Android演示需要cygwin [英] Why does PocketSphinx Android demo require cygwin

查看:163
本文介绍了为什么PocketSphinx Android演示需要cygwin的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Android中开发一个语音识别程序,到目前为止,我已经看到,最受欢迎的选项似乎是CMU狮身人面像,用pocketphinx用于Android。从我所理解的CMU的源代码Sphinx已经在Java中提供了在计算机上运行,​​所以不会直接在Android手机上运行。所以我将首先将CMu sphinx代码编译成一个库(像创建一个dll的代码,如果我在C中工作,我需要共享的代码),然后在android中构建一个界面,并从cmusphinx调用类。所以我发现这篇文章这个教程似乎是每个人都是最受欢迎的。它为Windows用户提供了一个链接这里指向哪里。在此页面中开始的海报表示,该教程可能或可能不适用于所有机器(这是初学者的担心),但更重要的是,它需要我下载Eclipse,NDK,Cygwin和各种各样的东西。我明白NDK可能是必需的,我应该得到它,但是我已经在Android SDK中完成了所有的开发工作。



是否可以这样做,而无需安装cygwin和Eclipse,只需使用我用来编写我所有程序的Android SDK?我需要什么cygwin和eclipse?使用Android SDK,我不能做任何eclipse应该在该教程中做的事情吗?

解决方案


是否可以这样做,而无需安装cygwin和Eclipse,只需使用我用来编写我所有程序的Android SDK?


是的,最新版本是完全可能的。开发从未如此简单,您只需从这里检查颠覆项目:



https://svn.code.sf.net/p/cmusphinx/code/trunk cmusphinx-code



Subversion插件是Eclipse的一部分。



检出项目后,您只需为您的设备构建它即可。一个很好的更新手册将在网站上公布(等待2周)。


我需要什么cygwin和eclipse对于?


Eclipse是IDE通过图形用户界面访问SDK功能的IDE。



您不需要Cygwin,这是对博客帖子的误解。



对于旧版本,您还需要用于编译的NDK本机代码为二进制。 Pocketsphinx使用本机代码进行更有效的解码,移动系统的资源有限。


我不能做任何eclipse应该做的事情那个教程,使用Android SDK?


你可以。


I am trying to develop a speech recognition program in android and so far I have seen that themost popular option seems to be CMU sphinx, with pocketsphinx being used for android. From what I have understood the source code for CMU Sphinx has been provided in Java for running on a computer, so will not directly run on an android phone. So I will first have to compile the CMu sphinx code into a sort of library (something like creating a dll out a code I need to share if I was working in C), then build an interface in android and call the classes from cmusphinx. So fr I have found this post and this tutorial seems to be the most popular one which everyone is referring to. It provides a link for windows users which point here. In this page at the beginning the poster states that the tutorial may or may not work on all machines (which is a worry for a beginner), but more importantly, it needs me to download Eclipse, NDK, Cygwin and all sorts of things. I understand that NDK might be a necessity and I should get it, but I already do all my development in the Android SDK.

Is it possible to do this without having to install cygwin and Eclipse, by just using the Android SDK that I use to write all my programs? What exactly do I need cygwin and eclipse for? Can't I do whatever eclipse is supposed to do in that tutorial, using the Android SDK?

解决方案

Is it possible to do this without having to install cygwin and Eclipse, by just using the Android SDK that I use to write all my programs?

Yes, it's perfectly possible with the latest version. Development has never been easier, you can just checkout project with subversion from here:

https://svn.code.sf.net/p/cmusphinx/code/trunk cmusphinx-code

Subversion plugin is part of the Eclipse.

Once you checkout the project, you can just build it for your device and it will work. A good updated manual for this will be released soon on the website (wait for 2 weeks).

What exactly do I need cygwin and eclipse for?

Eclipse is the IDE to give you access to SDK features through the graphical user interface.

You do not need Cygwin, this is a misconception of the author of the blog post.

For old version you also need NDK which is used to compile native code into binary. Pocketsphinx uses native code for more efficient decoding with a limited resources of mobile system.

Can't I do whatever eclipse is supposed to do in that tutorial, using the Android SDK?

You can.

这篇关于为什么PocketSphinx Android演示需要cygwin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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