我已经用 eclipse 成功配置了 sphinx4。
为此,我使用了这些步骤。
- 将我的 java 和配置文件复制到 SRC 文件夹中
- 所有必需的 jar 文件(在 lib 中)。添加到项目根目录的 lib 文件夹
- 构建这些 jar 文件(还有 jsapi 文件)
- 更改配置文件并给出正确的路径
- 测试 java 文件
,但在 Netbeans 中我真的不明白如何执行正确的步骤。有人可以帮助我吗? jar 文件应该添加到“Libraries”仪式中。
添加它们之后如何构建它们。
在 netbeans 中它不显示 SRC 文件夹。所以所有的java文件和配置文件都应该放到Source Packages文件夹rite中。
有人可以帮我解决这个问题吗?请
i have successfully configured sphinx4 with eclipse.
for that these steps i have used.
- copy my java and config files to SRC folder
- all the necessary jar files (in the lib). the lib folder added to the root of the project
- build those jar files (jsapi files too)
- change the configuration file and give the proper path
- test the java file
but in Netbeans i really dont understand how to do the proper steps. can someone help me. the jar files should be added to "Libraries" rite.
then after adding them how to build them.
in the netbeans it dont show a SRC folder. so all the java files and configuration files should go to Source Packages folder rite.
can someone help me with this. please
发布评论
评论(3)
如果您有 sphinx4-1.0beta6,那么您可以将文件夹作为 netbeans 项目打开。打开 netbeans,单击“打开项目”,然后导航到 sphinx 文件夹并将其打开。从此版本开始,它已经是 netbeans 项目文件类型。我认为这也将在以后的版本中起作用。我不知道为什么狮身人面像不在他们的网站上这么说。
If you have sphinx4-1.0beta6 then you can just open the folder up as a netbeans project. Open netbeans, click open project, then navigate to the sphinx folder and open it. It is already a netbeans project file type as of this version. I assume this will work in later versions also. I have no clue why sphinx doesn't say this on their website.
Sphinx4 是 OSS 存储库中提供的 Java 库,因此您可以将其用作任何库。
如果您的项目使用 maven/gradle,请在项目配置中添加存储库,然后添加对两个包的依赖项 - sphinx4 core 和 sphinx4-data。前者是主要库,如果您想识别美国英语,则需要后者。然后就开始写代码吧。
如果你想依赖jar文件,只需从存储库下载sphinx4-core和sphinx4-data文件并将它们作为依赖项添加到项目中,然后开始编写代码。
如果您想修改或开发 sphinx4 本身,请在 IDE 中安装 Gradle 支持,然后将最新的 sphinx4 源导入为 Gradle 项目。
有关更多详细信息和链接,请参阅教程
http://cmusphinx.sourceforge.net/wiki/tutorialsphinx4
Sphinx4 is a Java library available in OSS repository, so you can use it as any library.
If your project uses maven/gradle, add repository in your project configuration, then add dependency on two packages - sphinx4 core and sphinx4-data. The former is the main library, the latter is required if you want to recognize US English. Then just start writing the code.
If you want to rely on jar files, just download sphinx4-core and sphinx4-data files from the repository and add them as dependency to the project, then start writing code.
If you want to modify or develop sphinx4 itself, install Gradle support in your IDE, then import latest sphinx4 sources as a Gradle project.
For more details and links see the tutorial
http://cmusphinx.sourceforge.net/wiki/tutorialsphinx4
单击“添加 JAR/文件夹”
选择要添加的 jar 文件
click on Add JAR/Folder
select jar file you want to add