I am making a speech recognition program in java using sphinx4. For that I require the output format of my microphone to be "Microsoft PCM, 16 bit, mono 16000/8000 Hz". I tried to change it from Microphone properties but it shows only 2 options: 2 channel, 16 bit, 44100 Hz(CD quality)
and 2 channel, 16 bit, 48000 Hz(DVD quality)
. How to add my required format. I don't want to convert the format of microphone audio. I want to change settings in my Windows 10.
Thanks
Asked
Active
Viewed 1,122 times
1

Igniter
- 565
- 1
- 4
- 13
-
There is no such thing as "microphone format". Most likely you have some other problem, not the problem with a microphone. You need to provide the error message then. – Nikolay Shmyrev Jul 24 '16 at 06:24
-
I have searched google and many forums; through them I came to the conclusion that the problem is with its format. Following I have attached few lines of error message – Igniter Jul 24 '16 at 16:24
-
Cepstrum component auto-configured as follows: autoCepstrum {MelFrequencyFilterBank, Denoise, DiscreteCosineTransform2, Lifter} 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.
(Microphone.java:38) at edu.cmu.sphinx.api.SpeechSourceProvider.getMicrophone(SpeechSourceProvider.java:18) ......... – Igniter Jul 24 '16 at 16:24 -
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(DirectAudioDevice.java:513) at com.sun.media.sound.AbstractDataLine.open(AbstractDataLine.java:121) at com.sun.media.sound.AbstractDataLine.open(AbstractDataLine.java:413) at edu.cmu.sphinx.api.Microphone.
(Microphone.java:36) ... 3 more – Igniter Jul 24 '16 at 16:25 -
No, it is not a problem with the format, it is a problem with dialog demo on windows, a known one – Nikolay Shmyrev Jul 24 '16 at 17:35
-
Possible duplicate of [Can't access microphone while running Dialog demo in sphinx4 5prealpha](http://stackoverflow.com/questions/29121188/cant-access-microphone-while-running-dialog-demo-in-sphinx4-5prealpha) – Nikolay Shmyrev Jul 24 '16 at 17:37
-
So, the problem is with creating multiple recognizers. Okay, removed one recognizer but still there will remain the need to create a separate recognizer for language model. @Nikolay plz help me in this. And why API has not been updated in order to resolve this issue? – Igniter Jul 25 '16 at 05:19
-
Just use a single recognizer, API is not reworked because it's a bit more complex problem that it seems. – Nikolay Shmyrev Jul 25 '16 at 05:33
-
okay! then plz update diolog demo... I am new, I am having difficulty in coding... thanx – Igniter Jul 26 '16 at 07:31
-
Can u plz give me suggestion whether to use alpha or beta version of sphinx.. ? – Igniter Jul 26 '16 at 07:31