General Discussion

Nested
Sphinx4 in NetBeans; PocketSphinx demo
User: johnyjj2
Date: 11/8/2009 1:44 pm
Views: 15834
Rating: 5

Hello :-)!

Once I asked on this forum for help and KMacLean gave me really useful answer :-). This is why I thought that maybe you can help me a little bit with two things.

First thing (most important) is that I've got Sphinx4 installed in Windows and I'd like to create my own application which uses Sphinx4 in NetBeans. In order to do it, first of all I'd like to recompile examplary application (HelloDigits) in NetBeans. However, there are some problems with building it, connected with structure of directories in Sphinx4.

The second problem (less important than first one) is how to run examplary applications in PocketSphinx.

Because I already posted those questions on sourceforge (and I wait really much for the answer to the second one) in order to avoid crossposting, let me give links to those topics here:

Sphinx4 in NetBeans -> https://sourceforge.net/projects/cmusphinx/forums/forum/382337/topic/3453042 (post #1)
how to run demos in PocketSphinx -> https://sourceforge.net/projects/cmusphinx/forums/forum/5471/topic/3445960 (post #4)

Thanks very much for help in advance :-)!
Greetings :-)!

--- (Edited on 11/8/2009 1:44 pm [GMT-0600] by johnyjj2) ---

Re: Sphinx4 in NetBeans; PocketSphinx demo
User: kmaclean
Date: 11/12/2009 1:44 pm
Views: 121
Rating: 6

>I'd like to create my own application which uses Sphinx4 in NetBeans.

Sorry, I don't know NetBeans...

Can't you build it using Apache Ant from the command line? 

Or just use the Eclipse IDE using this How-to:Sphinx-4 Setup on Eclipse

Ken

--- (Edited on 11/12/2009 2:44 pm [GMT-0500] by kmaclean) ---

Re: Sphinx4 in NetBeans; PocketSphinx demo
User: johnyjj2
Date: 11/14/2009 8:48 am
Views: 2003
Rating: 6

Thank you for your answer :-)!

Unfortunately I don't know how to build it using Apache Ant from the command line. As you suggested, I tried to use Eclipse and it is much easier than NetBeans :-). However, there are still some difficulties (http://www.eclipse.org/forums/index.php?t=msg&goto=498098&S=8522b44a22f0b71982ed2cdecdb221b8#msg_498098). If I understand properly, the link which you gave me is about building the whole Sphinx4. And what I'd like to do is to create HelloDigits.jar from HelloDigits.java. I know those are already built, but I'd like to change the code according to my needs and then recompile those. If you'd like to see what I tried previously about NetBeans, it is here: http://forums.netbeans.org/viewtopic.php?p=54122#54122 .

Greetings :-)!

--- (Edited on 11/14/2009 8:48 am [GMT-0600] by johnyjj2) ---

Re: Sphinx4 in NetBeans; PocketSphinx demo
User: kmaclean
Date: 11/16/2009 12:01 pm
Views: 3413
Rating: 7

This info for building the VoxForge Speech Submission might be helpful (from this post):

I just build it from Eclipse using the SpeechSubmission ant build script (which is a slightly modified version of the Moodlespeex ant build script - path of least resistance...).  I don't really know much about ant, and I've never tried to build it outside of Eclipse.

If you are using Eclipse, you need to create a new Java project, and specify the ant.xml script included with the SpeechSubmission Java applet:

click File>New>Project (don't select Java Project)

From the "Select a wizard window":

Java Project from Existing Ant Buildfile 

From the  "Create a Java Project from an Ant Buildfile"

enter "project name"

click "browse" to select the ant build file for the SpeechSubmission App.

Then Eclipse does its magic, and you can then run it under Eclipse as follows:

Right-click project

click Run-as>Java Application

A window will pop up with the Java Application (or you will get lots of error messages in the Eclipse console).

Once your changes are completed, you can then 'export' (Right-click the project) it as a jar file. 

Ken

--- (Edited on 11/16/2009 1:01 pm [GMT-0500] by kmaclean) ---

PreviousNext