inpro.sphinx.frontend
Class WavTEDLogger

java.lang.Object
  extended by edu.cmu.sphinx.util.props.ConfigurableAdapter
      extended by edu.cmu.sphinx.frontend.BaseDataProcessor
          extended by edu.cmu.sphinx.frontend.util.WavWriter
              extended by inpro.sphinx.frontend.WavTEDLogger
All Implemented Interfaces:
edu.cmu.sphinx.frontend.DataProcessor, edu.cmu.sphinx.util.props.Configurable

public class WavTEDLogger
extends edu.cmu.sphinx.frontend.util.WavWriter

Tells TEDview about audio that has passed by. A processor that captures all audio passing by into a temporary audio file and notifies TEDview about adding this audio to the given track.

Author:
timo

Field Summary
private  long chunkStartTime
           
private  java.lang.String mostRecentFilename
           
static java.lang.String PROP_TED_PORT
           
static java.lang.String PROP_TED_TRACK
           
private  boolean tedOutput
           
private  int tedPort
           
private  java.lang.String tedTrack
           
 
Fields inherited from class edu.cmu.sphinx.frontend.util.WavWriter
captureUtts, dumpFilePath, PROP_BITS_PER_SAMPLE, PROP_CAPTURE_UTTERANCES, PROP_IS_COMPLETE_PATH, PROP_OUT_FILE_NAME_PATTERN, PROP_SIGNED_DATA
 
Fields inherited from class edu.cmu.sphinx.util.props.ConfigurableAdapter
logger
 
Constructor Summary
WavTEDLogger()
           
 
Method Summary
 edu.cmu.sphinx.frontend.Data getData()
           
 java.lang.String getDumpFilePath()
           
 java.lang.String getMostRecentFilename()
           
 void newProperties(edu.cmu.sphinx.util.props.PropertySheet ps)
           
 void setDumpFilePath(java.lang.String s)
           
protected  void writeFile(java.lang.String wavName)
           
 
Methods inherited from class edu.cmu.sphinx.frontend.util.WavWriter
convertDoublesToAudioStream, finalize, initialize, valuesToBytes, writeFile, writeTempFile, writeWavFile
 
Methods inherited from class edu.cmu.sphinx.frontend.BaseDataProcessor
getPredecessor, getTimer, setPredecessor
 
Methods inherited from class edu.cmu.sphinx.util.props.ConfigurableAdapter
getName, initLogger, toString
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROP_TED_PORT

@S4Integer(defaultValue=2000)
public static final java.lang.String PROP_TED_PORT
See Also:
Constant Field Values

tedPort

private int tedPort

PROP_TED_TRACK

@S4String(mandatory=true)
public static final java.lang.String PROP_TED_TRACK
See Also:
Constant Field Values

tedTrack

private java.lang.String tedTrack

tedOutput

private boolean tedOutput

chunkStartTime

private long chunkStartTime

mostRecentFilename

private java.lang.String mostRecentFilename
Constructor Detail

WavTEDLogger

public WavTEDLogger()
Method Detail

newProperties

public void newProperties(edu.cmu.sphinx.util.props.PropertySheet ps)
                   throws edu.cmu.sphinx.util.props.PropertyException
Specified by:
newProperties in interface edu.cmu.sphinx.util.props.Configurable
Overrides:
newProperties in class edu.cmu.sphinx.util.props.ConfigurableAdapter
Throws:
edu.cmu.sphinx.util.props.PropertyException

getMostRecentFilename

public java.lang.String getMostRecentFilename()

getDumpFilePath

public java.lang.String getDumpFilePath()

setDumpFilePath

public void setDumpFilePath(java.lang.String s)

writeFile

protected void writeFile(java.lang.String wavName)
Overrides:
writeFile in class edu.cmu.sphinx.frontend.util.WavWriter

getData

public edu.cmu.sphinx.frontend.Data getData()
                                     throws edu.cmu.sphinx.frontend.DataProcessingException
Specified by:
getData in interface edu.cmu.sphinx.frontend.DataProcessor
Overrides:
getData in class edu.cmu.sphinx.frontend.util.WavWriter
Throws:
edu.cmu.sphinx.frontend.DataProcessingException