Esempio n. 1
0
 /*
  * (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));
 }
Esempio n. 3
0
  @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);
  }
Esempio n. 4
0
 /*
  * (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++;
    }
  }
Esempio n. 6
0
 /** Initializes this SpeechMarker */
 @Override
 public void initialize() {
   super.initialize();
   reset();
 }