inpro.sphinx.frontend
Class WavTEDLogger
java.lang.Object
edu.cmu.sphinx.util.props.ConfigurableAdapter
edu.cmu.sphinx.frontend.BaseDataProcessor
edu.cmu.sphinx.frontend.util.WavWriter
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
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 |
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 |
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
WavTEDLogger
public WavTEDLogger()
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