Results 1 to 3 of 3
  1. #1
    johnyjj2 is offline Member
    Join Date
    Aug 2009
    Posts
    13
    Rep Power
    0

    Default build.xml, classpath and Sphinx4

    Hello :-)!

    SUMMARY: 1. how to add the bundled build.xml as project ant file?, 2. how to add the src/apps rolder and some jars files to classpath?

    I downloaded CMU Sphinx files (Sphinx4 speech recognition system written in Java). There are two directories, sphinx4-1.0beta3-bin and sphinx4-1.0beta3-src. In bin directory I've got working jar files and in src java files with code of those applications. I'd like to create jar files from java files by my own. I'd like to make some changes in the code and see whether it works. I tried to do it with NetBeans but I had many difficulties with doing that so I decided to download Eclipse and now it's much easier! However there are still some problems.

    If you're interested in my attempts to solve this issue in NetBeans: ht tps:/ /sourceforge.n et/projects/cmusphinx/forums/forum/382337/topic/3453042 . The procedure of what I need to do in Eclipse/NetBeans is here and now I try to follow it in Eclipse: ht tp:/ /cmusphinx.sourceforge.net/sphinx4/#setupide . I followed first and second step and I don't know how to do what is later. You can download Sphinx4 for free in order to see what is inside it here: ht tps:/ /sourceforge.net/projects/cmusphinx/files/sphinx4/ .

    I would be greatful if you can tell me how to add this build.xml as project ant file and add the src/apps folder to my classpath. The last step of the instruction is as follows: "To perform common tasks (like deployment of the sphinx4.jar, the models or the demo-jars) directly from within your IDE you might also want to add the bundled build.xml as project ant file. This can be done in most cases by just right-clicking the build.xml in the file navigator pane of your IDE and selecting "Add as project ant file". To debug the demo applications you also need to add the src/apps folder and the acoustic model jars (that can be deployed to the lib-directory with a simple ant all) to your classpath".

    Greetings :-)!

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    To add the source files just copy the directories to your project's src folder.
    Adding the build.xml file to the project's root directory is usually sufficient. You then run it by right clicking it and selecting Run as Ant Build.

  3. #3
    johnyjj2 is offline Member
    Join Date
    Aug 2009
    Posts
    13
    Rep Power
    0

    Default

    Thank you for answer :-)!

    I guess finally I understood what was the case. I should use Ant rather than try to do something in Eclipse/NetBeans etc. :-). I looked at the content of workspace/project and noticed that no files were copied, it only created structure of directories. It also added things to .classpath in somehow unexpected way. I also looked more carefully at files manifest and demo.xml. I think the best idea for me is to copy one of applications (e.g. HelloWorld), adapt it to my needs (change the code, acoustic models and some other Sphinx-connected things), add necessary entry to demo.xml, using analogy to already existing, install Ant and execute demo.xml with the use of Ant. So the only thing left is that I need to know how to execute demo.xmo in Ant. I think I shouldn't have spent this much time in Eclipse and NetBeans, I should've looked at running demo.xml with Ant.

    In fact I'd like to create application with PocketSphinx. (PocketSphinx can be run on mobile phone, Sphinx4 only on PC. In tha case of PocketSphinx, I wouldn't need to try redirecting of speech from mobile phone to server with Skype, it would save much of my work and time). Sphinx4 is also good option, but PocketSphinx is better one. I thougth that it would be similarly easy to do with PocketSphinx what I decided to do with Spinx4 so I searched in PocketSphinx directory for xml files but I didn't find any. I also looked for informations about PocketSphinx on CMU Sphinx websites and found only three links (my topic here: ht tps:/ /sourceforge.n et/projects/cmusphinx/forums/forum/5471/topic/3445960?message=7750375). It looks like PocketSphinx works in a little bit different way than Sphinx4, i.e. with the use of scripts, e.g. pocketsphinx-0.5.1/scripts/pocketsphinx_tidigits . Can you suggest me, please, how to edit/build/run application with PocketSphinx (in similarly easy way as executing xml with Ant for Sphinx4)? To be downloaded here: ht tp:/ /cmusphinx.or g/download/nightly/pocketsphinx.nightly.tar.gz .

    Greetings!

    PS Erase spacebars in links.

Similar Threads

  1. Classpath
    By JavaJunkie in forum New To Java
    Replies: 1
    Last Post: 04-07-2009, 07:17 AM
  2. Classpath
    By Parneel in forum Enterprise JavaBeans (EJB)
    Replies: 4
    Last Post: 04-01-2009, 12:22 PM
  3. Classpath
    By dawiz001 in forum New To Java
    Replies: 3
    Last Post: 03-18-2009, 02:18 PM
  4. Set classPath?
    By rgbosque in forum New To Java
    Replies: 3
    Last Post: 02-07-2008, 02:14 PM
  5. GNU Classpath 0.96.1
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 11-01-2007, 04:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •