lkuza2 / java-speech-api

The J.A.R.V.I.S. Speech API is designed to be simple and efficient, using the speech engines created by Google to provide functionality for parts of the API. Essentially, it is an API written in Java, including a recognizer, synthesizer, and a microphone capture utility. The project uses Google services for the synthesizer and recognizer. While this requires an Internet connection, it provides a complete, modern, and fully functional speech API in Java.
GNU General Public License v3.0
534 stars 301 forks source link

Multiple mics, source choose #23

Closed MrNeuronix closed 10 years ago

MrNeuronix commented 11 years ago

Good day! Is it possible to use multiple microphones in the library? How do I know which device is produced capture sound?

lkuza2 commented 11 years ago

I believe it is whatever microphone that is currently selected by the system. (The Default). I will read up more on this to see if it is possible to enumerate microphones and select the source.

Skylion007 commented 11 years ago

It's handled by the JavaSoundApi. You should be able to set the TargetDataLine using the Mixer if you really want to, but it's System Default and I will look into making it easier to select a specific mic.

MrNeuronix commented 11 years ago

It will be great! I'll wait for this functional.

Skylion007 commented 10 years ago

I hope this answers your questions. I finally had the time to write a tutorial for Microphone Selection. https://github.com/The-Shadow/java-speech-api/wiki/Microphone-Selection