Is CMU Sphinx available via Maven?

笑着哭i 提交于 2019-12-12 11:03:07

问题


I have an idea for an app that may need CMU Sphinx, is it available via maven, or do I need to add it by hand?


回答1:


Update: CMUSphinx is going to be available in sonatype in a week or so. The maven support has already been committed into sphinx4 trunk.




回答2:


You can check from http://cmusphinx.sourceforge.net/wiki/tutorialsphinx4:

Overview

Sphinx-4 is a pure Java speech recognition library. It's very flexible in its configuration, and in order to carry out speech recognition jobs quite a lot of objects depending on each other should be instantiated, throughout this article we will call them all together “object graph”. Fortunately, the most of the objects can be instantiated automatically, and for those few requiring manual setup Sphinx-4 provides high-level interfaces and a context class that takes out the need to setup each parameter of the object graph separately.

Using in your projects

Sphinx-4 is available as a maven package in Sonatype OSS repository. To use sphinx4 in your maven project specify this repository in your pom.xml:

<project>
...
   <repositories>
       <repository
           <id>snapshots-repo</id>
           <url>https://oss.sonatype.org/content/repositories/snapshots</url>
           <releases><enabled>false</enabled></releases>
          <snapshots><enabled>true</enabled></snapshots>
       </repository>
   </repositories>
...
</project>

Then add sphinx4-core to the project dependencies:

<dependency>
  <groupId>edu.cmu.sphinx</groupId>
 <artifactId>sphinx4-core</artifactId>
 <version>1.0-SNAPSHOT</version>

Add sphinx4-data to dependencies as well if you want to use default acoustic and language models:

<dependency>
  <groupId>edu.cmu.sphinx</groupId>
  <artifactId>sphinx4-data</artifactId>
  <version>1.0-SNAPSHOT</version>
</dependency>


来源:https://stackoverflow.com/questions/13487075/is-cmu-sphinx-available-via-maven

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!