I would like to use Sphinx to create a voice driven
MP3 player. I am a Java developer, however I am very new to Java Audio.
I am having problems recognising and then attempting to output audio, the audio output fails with a javax.sound.sampled.LineUnavailableException: Bad Parameters. I assume this is because it is trying to open the same line as the recogniser already has? Is there some way to get the line that Sphinx is using? Could I then use this in the audio output?
Failing that, can I easily close the line? I have tried doing a microphone.stopRecording() even a recognizer.deallocate() but am still getting the same problem.
Please note that I am trying to integrate a 3rd party java MP3 player, I did not write it. However, it works fine on its own.
The speech recognition part is working beautifully btw.
Many thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I would like to use Sphinx to create a voice driven
MP3 player. I am a Java developer, however I am very new to Java Audio.
I am having problems recognising and then attempting to output audio, the audio output fails with a javax.sound.sampled.LineUnavailableException: Bad Parameters. I assume this is because it is trying to open the same line as the recogniser already has? Is there some way to get the line that Sphinx is using? Could I then use this in the audio output?
Failing that, can I easily close the line? I have tried doing a microphone.stopRecording() even a recognizer.deallocate() but am still getting the same problem.
Please note that I am trying to integrate a 3rd party java MP3 player, I did not write it. However, it works fine on its own.
The speech recognition part is working beautifully btw.
Many thanks.
Try to ask this again in the Sphinx 4 forum. Will, Paul and Philip could give you a lot of help at there. -Arthur
Ok, I have posted there too.
Thanks Arthur.