/* * (non-Javadoc) * * @see * edu.cmu.sphinx.frontend.DataProcessor#initialize(edu.cmu.sphinx.frontend * .CommonConfig) */ @Override public void initialize() { super.initialize(); for (DataProcessor dataProcessor : selectedDataProcessors) { dataProcessor.initialize(); } }
@Override public void newProperties(PropertySheet ps) throws PropertyException { super.newProperties(ps); logger = ps.getLogger(); create( ps.getInt(PROP_BYTES_PER_READ), ps.getComponentList(AUDIO_FILE_LISTENERS, AudioFileProcessListener.class)); }
@Override public void newProperties(PropertySheet ps) throws PropertyException { super.newProperties(ps); startSpeechTime = ps.getInt(PROP_START_SPEECH); endSilenceTime = ps.getInt(PROP_END_SILENCE); speechLeader = ps.getInt(PROP_SPEECH_LEADER); }
/* * (non-Javadoc) * * @see * edu.cmu.sphinx.util.props.Configurable#newProperties(edu.cmu.sphinx.util * .props.PropertySheet) */ @Override public void newProperties(PropertySheet ps) throws PropertyException { super.newProperties(ps); loader = (Loader) ps.getComponent(PROP_LOADER); try { loader.load(); } catch (IOException e) { throw new PropertyException(e); } initDataProcessors(); }
@Override public void initialize() { super.initialize(); // reset all stream tags streamEndReached = false; utteranceEndSent = false; utteranceStarted = false; if (bytesPerRead % 2 == 1) { bytesPerRead++; } }
/** Initializes this SpeechMarker */ @Override public void initialize() { super.initialize(); reset(); }