Spanish

Flat
Re: no se usar modelo
User: nsh
Date: 10/2/2014 1:37 pm
Views: 221
Rating: 10

Check Dialog demo to see how to recognize from microphone.

 

beginner problems
User: Kritik
Date: 10/2/2014 4:47 pm
Views: 451
Rating: 10

This is the error i have got just play DialogDemo. Just watch my microphone configuration in windows and i have this choosen:

"Canal2, 16 bit, 44100 Hz (Calidad de CD)"

And i have this other disponible configurations:

Canal2, 16 bit, 48000 Hz (Calidad de DVD)
Canal2, 16 bit, 96000 Hz (Calidad de Estudio)

I have not lower Hz disponible configuration... i spect this isnt the error.

My sound target comes with motherboard, and its a NVIDIA model, with windows standard drivers. But if its the problem, i can install the motherboard specific sound drivers that comes with motherboeard CD.

I suspect that by first line of errors: "line with format PCM_SIGNED 16000.0 Hz, 16 bit, mono, 2 bytes/frame, little-endian not supported."

The given error is the next lines:

Exception in thread "main" java.lang.IllegalStateException: javax.sound.sampled.LineUnavailableException: line with format PCM_SIGNED 16000.0 Hz, 16 bit, mono, 2 bytes/frame, little-endian not supported.

at edu.cmu.sphinx.api.Microphone.<init>(Microphone.java:38)

at edu.cmu.sphinx.api.SpeechSourceProvider.getMicrophone(SpeechSourceProvider.java:18)

at edu.cmu.sphinx.api.LiveSpeechRecognizer.<init>(LiveSpeechRecognizer.java:34)

at edu.cmu.sphinx.demo.dialog.DialogDemo.main(DialogDemo.java:145)

Caused by: javax.sound.sampled.LineUnavailableException: line with format PCM_SIGNED 16000.0 Hz, 16 bit, mono, 2 bytes/frame, little-endian not supported.

 

 

at com.sun.media.sound.DirectAudioDevice$DirectDL.implOpen(Unknown Source)

at com.sun.media.sound.AbstractDataLine.open(Unknown Source)

at com.sun.media.sound.AbstractDataLine.open(Unknown Source)

 

 

 

at edu.cmu.sphinx.api.Microphone.<init>(Microphone.java:36)

 

 

... 3 more

 

 

 

 

------------

I suspect that post can be very interesting to many new sphinx4 beginners users, because it has many diferent problems, sure that thay are all noob problem

PD: sphinx4 works with JRE: JavaSE-1.7 but i have 1.8 that let me what version to use in each project (equals before java8 you could use 1.7, 1.6, etc)... if there is a new javax.sound.sampled more actual... maybe could be better use the JRE java8. I dont know. What do you think about?

Re: beginner problems
User: nsh
Date: 10/2/2014 4:59 pm
Views: 277
Rating: 8

This problem is not related to microphone setting sto your system but to your java which doesn't allow to open several recognizers at once. If you are on Windoes it might happen

Comment out initialization of other LiveSpeechRecognizer in sources except the first one. With one LiveSpeechRecognizer it should work fine.

 

Re: beginner problems
User: Kritik
Date: 10/3/2014 8:31 am
Views: 2429
Rating: 12

I dont know how to use only one LiveSpeechRecognizer. I only use DialogDemo.java, i push play and i get the same error.

My Microphone is closed to speakers, and i believe no windows programs use it. I mean... i have programs that uses microphone like skype, but they are closed.

How can i use only one LiveSpeechRecognizer using DialogDemo?

 

PreviousNext