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

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

问题描述

我想开发Android的语音识别程序,到目前为止,我已经看到,themost流行的选择似乎是CMU狮身人面像,与pocketsphinx被用于机器人。从我所了解的来源$ C ​​$下CMU狮身人面像已经在Java中规定的在计算机上运行,​​因此不会在Android手机上直接运行。因此,我首先必须编译CMU狮身人面像code变成了一种库(类似于创建DLL了code,我需要分享,如果我是在C工作),那么建立在Android的一个接口,从cmusphinx调用的类。所以FR我发现这个帖子和的本教程似乎是最流行的其中一个每个人都提到。它提供了一个链接,windows用户这点这里。在此页面开头海报指出,教程可能会或可能不会在所有的机器(这是令人担忧的初学者),但更重要的是,它需要我去下载Eclipse,NDK,Cygwin和各种东西。据我所知,NDK可能是必要的,我应该得到它,但我已经尽我在Android SDK中的所有发展。

是否有可能做到这一点,而无需安装Cygwin和Eclipse,仅仅使用,我用它来写我所有的程序在Android SDK?究竟是否需要Cygwin和Eclipse进行?我不能做任何日食是应该做该教程,使用Android SDK?

解决方案
  

是否有可能做到这一点,而无需安装Cygwin和Eclipse,仅仅使用,我用它来写我所有的程序在Android SDK?

是的,这是完全有可能的最新版本。开发从未如此简单,你可以从这里颠覆刚结帐的项目:

的https://svn.$c$c .sf.net / P / cmusphinx / code /后备箱 cmusphinx- code

颠覆的插件是Eclipse的一部分。

一旦你签的项目,你可以建造它为您的设备,它会工作。一个良好的手动更新此不久将公布在网站上(等待2周)。

  

究竟我是否需要Cygwin和Eclipse进行?

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

您不需要Cygwin的,这是对的博客文章作者的误解。

对于旧版本,你还需要NDK这是用来编译本土code为二进制。 Pocketsphinx使用本机code更有效的解码与移动系统的有限资源。

  

我不能做任何日食是应该做该教程,使用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天全站免登陆