net.cscott.sdr.recog
Class Microphone
java.lang.Object
edu.cmu.sphinx.util.props.ConfigurableAdapter
edu.cmu.sphinx.frontend.BaseDataProcessor
net.cscott.sdr.recog.Microphone
- All Implemented Interfaces:
- DataProcessor, Configurable
public class Microphone
- extends BaseDataProcessor
Microphone
allows on-the-fly selection of different Sphinx input
sources. We hardcode some of the adjustable properties of the stock
Sphinx Microphone
, but provide
on-the-fly source selection.
Microphone
public Microphone()
initialize
public void initialize()
- Specified by:
initialize
in interface DataProcessor
- Overrides:
initialize
in class BaseDataProcessor
availableMixers
public List<Microphone.NameAndLine> availableMixers()
- Look for all mixers providing our desired input format.
switchMixer
public void switchMixer(Microphone.NameAndLine nal)
- Switch the mixer in use by the audio thread.
getData
public Data getData()
throws DataProcessingException
- Specified by:
getData
in interface DataProcessor
- Specified by:
getData
in class BaseDataProcessor
- Throws:
DataProcessingException
Copyright © 2006-2009 C. Scott Ananian