Questions tagged [sphinx4]

Sphinx-4 is a part of CMUSphinx Speech Recognition Toolkit. It's a flexible large and small vocabulary speech decoder written in Java and licensed under BSD license.

This tag is about Sphinx-4, a speech recognition decoder. Speech recognition is fastly growing domain and it's quite complex by its nature. The development of the speech recognition application requires understanding of the speech recognition specifics - a probabilistic nature of the results, the need for throughout testing, the specifics of the voice user interface design, the accuracy/speed balance.

The main concept you need to be aware about are acoustic model used to capture the sounds of the language, the language model used to capture the vocabulary and the dictionary which maps from words to sounds. The use of Sphinx-4 in your application is often straightforward but you need to be more careful than usually to get everything in place.

To learn more about CMUSphinx and Sphinx-4 visit CMUSphinx page

https://cmusphinx.github.io/wiki/

Read the tutorial

https://cmusphinx.github.io/wiki/tutorial/

255 questions
1
vote
1 answer

Receive input from microphone from 2 processes at once

I've been working on the java speech recognition using sphynx4 and I currently have and issue. I have an app that recognizes the microphone input using LiveSpeechRecognizer class of Sphynx4 which works fine. The issue is that after i added the class…
1
vote
1 answer

Sphinx 4 corrupted ARPA LM?

I have an ARPA LM generated by kylm, when running SPHINX I get this exception stack trace: Exception in thread "main" java.lang.RuntimeException: Allocation of search manager resources failed at…
firas
  • 1,463
  • 4
  • 19
  • 42
1
vote
1 answer

How to Optimize JVM to utilize less resources

I am using Apache tomcat 7.02 as a server.I created an application using sphinx4 and deployed it on apache tomcat server.Since this Sphinx4 application requires a lot of memory to execute.So for that purpose i alloted lot of memory as java Heap…
coderslay
  • 13,960
  • 31
  • 73
  • 121
1
vote
0 answers

Sphinx4 helloworld indexOutOfBoundException

i'm running the HelloWorld code give by sphinx. It starts and waits for me to say something in the mic, but when i start speaking it gives me this error: Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 110, Size: 110 at…
1
vote
1 answer

Sphinx 4 terrible accuracy

I am trying to get sphinx 4 to work with my desktop application and it gets it right 0% of the time also I'm using the default language models and all that stuff from the sphinx4 data.jar code: import edu.cmu.sphinx.api.Configuration; import…
1
vote
1 answer

quality issue with offline voice-to-text using Sphinx4

I'd like to perform voice recognition on a large number of .wav files that are continually being generated. There are a growing number of online voice-to-text API services (e.g. Google Cloud Speech, Amazon Lex, Twilio Speech Recognition, Nexmo…
1
vote
1 answer

Receiving JSGF Gramma rule name

I've created a gramma #JSGF V1.0; /** * JSGF Grammar */ grammar grammar; public = ( zero | one | two | three | four | five | six | seven | nine | ten | eleven | twelve | thirteen | fourteen | fifteen | sixteen |…
Adrian
  • 96
  • 5
1
vote
1 answer

How to get the timestamp of when a word was said using Sphinx

I am currently trying to get the timestamp of a word which has been detected using CMU Sphinx. while ((result = recognizer.getResult()) != null) { for(WordResult w : result.getWords()){ if(w.getWord() != Word.UNKNOWN){ …
Elijah
  • 66
  • 7
1
vote
2 answers

CMUSphinx German command & control app, bad accuracy

I'm trying to implement a German command and control application with CMUSphinx and Java. So far, the application should recognize only a few words (numbers from 1 to 9, yes/no). Unfortunately the accuracy is very bad. It seems, if a word is…
spaenigs
  • 152
  • 1
  • 10
1
vote
1 answer

Speech Recognition through sphinx 4

Hey has anyone used sphinx 4? I want to use it for my project, I installed it and run its HelloWorld demo, the problem is it works fine the first and second times but then when I execute it the third time, it doesnt recognise anything. Any idea why…
user526397
  • 11
  • 2
1
vote
1 answer

Small Data training in CMU Sphinx

I have installed sphinxbase, sphinxtrain and pocketsphinx in Linux (Ubuntu). Now I am trying to train data with speechcorps,transcriptions, dictionary etc obtained from VOXFORGE. (My etc and wav folder's data is obtained from VOXFORGE) As I am new…
Adnan Ali
  • 2,851
  • 5
  • 22
  • 39
1
vote
3 answers

Don't know which classes to start to test sphinx4

I have done these steps 1- downloaded latest version of Sphinx4 from https://sourceforge.net/projects/cmusphinx/files/sphinx4/5prealpha/ 2- installed Gradle IDE Pack 3.8.x + 1.0.x in Eclipse (Gradle plugin). 3- Imported Sphinx4 as Gradle STS…
Adnan Ali
  • 2,851
  • 5
  • 22
  • 39
1
vote
2 answers

No such method error getComponentNames

I'm new to this topic and I was trying to build a sample project using Sphinx4 libraries following this tutorial step by step: Tutorial link then I kept having the same error from the (run.xml) the code I used: public static void main(String[]…
1
vote
1 answer

Sphinx4 Dutch Language Model not working

I just created a language model from a short text file. I did this for both English and Dutch, primarily to reduce recognition times by decreasing the possiblilities. I both created them using the Sphinx toolkit and the basesphinx lm to binary…
peter
  • 55
  • 1
  • 8
1
vote
1 answer

CMU Sphinx 4-5prealpha : "WARNING: Grammar missing self identifying header"

I'm trying to get used to CMU sphinx 4-5prealpha. Everything works fine with recognition without grammar, but I need to handle not really much commands / words / phrases. So, here goes some code and error stack : public static void main(String[]…
Yuri Stiopin
  • 105
  • 10