![]() |
| |||||||
| General Software Software is what your computer runs. Word processors, spreadsheet programs... Discuss it all here. |
| |||||
| |
![]() |
| LinkBack | Thread Tools | Display Modes |
| |||
| 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. |
| |||
| 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! |
![]() |
| Thread Tools | |
| Display Modes | |
| |