Menu

issues trying to get demo to work

2019-07-09
2020-04-18
  • Herbert Rock

    Herbert Rock - 2019-07-09

    I've been trying a few weeks now to get this demo to work: https://cmusphinx.github.io/wiki/tutorialsphinx4/
    But no success.
    In Windows 10, using eclipse, I added manually the libraries sphinx4-core-5prealpha, and sphinx4-data-5prealpha.

    I'm getting the error "The type edu.cmu.sphinx.api.StreamSpeechRecognizer is not accessible" at the top, and at the bottom I'm having "Configuration cannot be resolved to a type"

    I attached a screenshot of the error, since it might be easier to see what's going on there.

    I have to add, I'm a java newbie, so it could be something simple.
    Any ideas? is it something simple, or is there a problem with the libraries?

     
    • Nickolay V. Shmyrev

      It is 2019 around. Try Gradle/IntelliJ Idea.

       
  • Herbert Rock

    Herbert Rock - 2019-07-10

    Gradle and Maven both didn't work for me either, tried multiple times.
    I started now on a clean Windows 7, installed all the latest java and eclipse, added gradle to eclipse, created new project and added
    mavenLocal()
    maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
    to repositories and the 2 lines
    compile group: 'edu.cmu.sphinx', name: 'sphinx4-core', version:'5prealpha-SNAPSHOT'
    compile group: 'edu.cmu.sphinx', name: 'sphinx4-data', version:'5prealpha-SNAPSHOT'
    to dependencies.

    I get now on the import edu.cmu.sphinx.api.Configuration:
    Multiple markers at this line
    -the import edu cannot be resolved
    -Occurence of 'edu'

     
  • Herbert Rock

    Herbert Rock - 2019-07-22

    I got it to work with Maven!
    Gradle didn't do it after many different tries, but Maven works.

     
  • Marius Vodermaier

    Hey I have exactly the same problem, but I'm already using Maven and it still wont work, can someone suggest me sth that may help me?

    Thanks a lot in advance.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.