De: Jesús Romero [mailto:thonalan@hotmail.com]
Enviado el: martes, 07 de octubre de 2014 22:11
Para: 'sphinx4@discussion.cmusphinx.p.re.sf.net'
Asunto: DialogDemo problem
I have downloaded last versión sphinx4, and i have tried to use DialogDemo
example without to change anything. I have got this error:
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
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)</init>
... 3 more
What can i do to make DialogDemo.java runs?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
To make dialog demo run on your system you need to comment out the part where it creates multiple live recognizers and leave only one recognizer. Unfortunately multiple recognizers could not be instantiated on Windows platform. We are aware of this issue and working on it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
De: Jesús Romero [mailto:thonalan@hotmail.com]
Enviado el: martes, 07 de octubre de 2014 22:11
Para: 'sphinx4@discussion.cmusphinx.p.re.sf.net'
Asunto: DialogDemo problem
I have downloaded last versión sphinx4, and i have tried to use DialogDemo
example without to change anything. I have got this error:
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.
edu.cmu.sphinx.api.SpeechSourceProvider.getMicrophone(SpeechSourceProvider.j
ava:18)
edu.cmu.sphinx.api.LiveSpeechRecognizer.<init>(LiveSpeechRecognizer.java:34)</init>
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)</init>
... 3 more
What can i do to make DialogDemo.java runs?
Hello Jesus
To make dialog demo run on your system you need to comment out the part where it creates multiple live recognizers and leave only one recognizer. Unfortunately multiple recognizers could not be instantiated on Windows platform. We are aware of this issue and working on it.
This issue originally discussed here:
https://sourceforge.net/p/cmusphinx/discussion/sphinx4/thread/b31b5b35/?limit=25#e2c6