VoxForge
Estoy bastante pez en java, y he encontrado el archivo para usar con sphinx:
voxforge-es-0.1.1.tar.gz.
Cuando lo descomprimo me salen algunos archivos y carpetas que no se utilizar en mi proyecto de java.
A ver si alguien podría ayudarme.
You can find the sample here:
To use Spanish model you just need to set the path to the dictionary and the models:
configuration.setAcousticModelPath("file:voxforge_es.cd_cont_1000"); configuration.setDictionaryPath("file:voxforge_es.dic"); configuration.setLanguageModelPath("file:voxforge_es.lm");
Thank you by answer, i copied the code and i got any errors.
I cannot find:
edu.cmu.sphinx.api.Configuration;
edu.cmu.sphinx.api.SpeechResult;
edu.cmu.sphinx.api.StreamSpeechRecognizer;
edu.cmu.sphinx.decoder.adaptation.Stats;
edu.cmu.sphinx.decoder.adaptation.Transform;
I suppose i haven`t import any library, but i dont know whitch one.
and i cannot find 3 files you refered,
voxforge_es.cd_cont_1000, voxforge_es.dic, voxforge_es.lm.
That files is not packed in the file that i mentioned. Where can i find all them?
> I cannot find:
edu.cmu.sphinx.api.Configuration;
You need to checkout latest sphinx4 from github first
http://github.com/cmusphinx/sphinx4
> voxforge_es.cd_cont_1000, voxforge_es.dic, voxforge_es.lm.
Gracias. Estoy buscando en esa web y no encuentro donde bajar la ultima versión.
La que yo tengo es esta:
http://sourceforge.net/projects/sphinx4/?source=directory
Last Update: 2013-05-21
Pero en la web que me has indicado, he visto que han hecho cambios hace 2 días, sin embargo... no encuentro sphinx4.jar en esa web.
En cuanto al código... voy entendiendo a grandes rasgos como funciona. Pero necesitaría la última versión para poder hacerlo funcionar y así poder implementarlo a mi programa.
Alguien sabe si existe una versión posterior de sphinx4 y donde bajarla?
You can download latest sphinx4 at
http://github.com/cmusphinx/sphinx4
There is "download zip" link on the page.
You can build downloaded sources with maven. Just run "mvn install" in top folder.
I dont know how to work with it.
Its very difficult for me to find anything in this great packet of files and folders.
All the examples begin with "import edu.cmu.sphinx...." but i dont know how to use it if no one jar is to import like library... and im lost without this file.
By other side, in you instructions said i need to make an apache server to work with it. I haven`t done that. But... why if i have not jar file? will the apache server get the files i downloaded to give me the jar file? I dont want to use any web server, will i need it to use sphinx? why? if the program i want to omake doesn´t need internet!!
like you see, im totally lost with this version of sphinx.
Please, if you can, tell me step by step, click by click how to use any spanish voice-to-text example. Any other case im lost.
------------------
Editing:
Im just trying use "mvn install" but i cannot find where to do it.
-----------------
Editing:
Just watching api imports. Now let´s begin use them.
> Just watching api imports. Now let´s begin use them.
Now i have 4 now sphinx proyects.
sphinx4-core
sphinx4-data
sphinx4-parent
sphinx4-samples.
I have found the same "TranscriberDemo" that you linked in samples proyect, and now it does not have any code error. Now it can import all sphinx4 libraries. But i try to run without change nothing, equal than it is the original code and it does not runs.
in configuration, all files is where configuration say it must be. 3 parameters you said, the original code has the files and folders that code say it must have. And program tell me thousands of errors during 30-40 seconds, like this:
INFORMACIÓN: LM Cache Size: 5731 Hits: 1831790 Misses: 20459
oct 02, 2014 8:21:38 AM edu.cmu.sphinx.frontend.feature.LiveCMN normalize
INFORMACIÓN: 8.73 0.21 -0.02 -0.11 -0.06 -0.20 -0.22 -0.09 -0.24 -0.12 -0.15 -0.13 -0.11
oct 02, 2014 8:22:16 AM edu.cmu.sphinx.frontend.feature.LiveCMN normalize
and finally, program give me the next errors:
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at edu.cmu.sphinx.decoder.search.WordPruningBreadthFirstSearchManager.collectSuccessorTokens(WordPruningBreadthFirstSearchManager.java:662)
at edu.cmu.sphinx.decoder.search.WordPruningBreadthFirstSearchManager.growEmittingBranches(WordPruningBreadthFirstSearchManager.java:414)
at edu.cmu.sphinx.decoder.search.WordPruningBreadthFirstSearchManager.recognize(WordPruningBreadthFirstSearchManager.java:303)
at edu.cmu.sphinx.decoder.search.WordPruningBreadthFirstSearchManager.recognize(WordPruningBreadthFirstSearchManager.java:278)
at edu.cmu.sphinx.decoder.Decoder.decode(Decoder.java:64)
at edu.cmu.sphinx.recognizer.Recognizer.recognize(Recognizer.java:109)
at edu.cmu.sphinx.recognizer.Recognizer.recognize(Recognizer.java:125)
at edu.cmu.sphinx.api.AbstractSpeechRecognizer.getResult(AbstractSpeechRecognizer.java:55)
at edu.cmu.sphinx.demo.transcriber.TranscriberDemo.main(TranscriberDemo.java:79)
---------------
Editing:
Made greater memory to this program (-Xmx512m) and running.
Now looking for information about how to use life recognition, without wav, directly from microphone.
Just found a telephone-voice recognition system made to medical use that uses sphinx4 and VoxForge spanish model in: http://www.mediturnos.com