Computer Forums  

Go Back   Computer Forums > Software > General Software

General Software Software is what your computer runs. Word processors, spreadsheet programs... Discuss it all here.

Register Now for FREE!

Fill out the form below for your free account and start posting today!


Username: Password: Confirm Password: E-Mail: Confirm E-Mail:
Agree to forum rules 

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 14/11/09, 19:27
Newbie
 
Join Date: 13 Nov 2009
Posts: 7
johnyjj2 is on a distinguished road
Default build.xml, classpath and Sphinx4Hello Smile!

Hello :-)!

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.n et/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.ne t/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 :-)!

PS Let me repeat and summarize my questions:
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?
You can read last paragraph of my first post for details.

PS2 Delete space bars in links.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 16/11/09, 08:40
New Member
 
Join Date: 27 Oct 2009
Posts: 14
merryjohnson is on a distinguished road
Default Re: build.xml, classpath and Sphinx4Hello Smile!

I think you can include some other jar files by using include command in the header part of the file.
__________________
Regards,
Merry J
http://www.eco-inkjets.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 18/11/09, 11:37
Newbie
 
Join Date: 13 Nov 2009
Posts: 7
johnyjj2 is on a distinguished road
Default Re: build.xml, classpath and Sphinx4Hello Smile!

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: https://sourceforge.net/projects/cmu...essage=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: http://cmusphinx.org/download/nightl...nightly.tar.gz .

Greetings!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 10:37.


Content © Copyright 2005-2010 CompuForums. All Rights Reserved. Some content © Copyright of the respective owners.
Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.0