edu.cmu.sphinx.tools.feature
Class FeatureFileDumper

java.lang.Object
  extended byedu.cmu.sphinx.tools.feature.FeatureFileDumper

public class FeatureFileDumper
extends java.lang.Object

This program takes in an audio file, does frontend signal processing to it, and then dumps the resulting Feature into a separate file. This program takes three arguments: 1. propsFile - the Sphinx properties file 2. audioFile - the name of the audio file 3. outputFile - the name of the output file


Constructor Summary
FeatureFileDumper(ConfigurationManager cm, java.lang.String frontEndName, java.lang.String inputAudioFile)
          Constructs a FeatureFileDumper.
 
Method Summary
 void dumpAscii(java.lang.String outputFile)
          Dumps the feature to the given ascii output file.
 void dumpBinary(java.lang.String outputFile)
          Dumps the feature to the given binary output.
static void main(java.lang.String[] argv)
          Main program for this dumper.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureFileDumper

public FeatureFileDumper(ConfigurationManager cm,
                         java.lang.String frontEndName,
                         java.lang.String inputAudioFile)
                  throws java.io.FileNotFoundException,
                         java.io.IOException
Constructs a FeatureFileDumper.

Parameters:
cm - the Sphinx configuration manager
inputAudioFile - the input audio file
Method Detail

dumpBinary

public void dumpBinary(java.lang.String outputFile)
                throws java.io.IOException
Dumps the feature to the given binary output.

Parameters:
outputFile - the binary output file
Throws:
java.io.IOException

dumpAscii

public void dumpAscii(java.lang.String outputFile)
               throws java.io.IOException
Dumps the feature to the given ascii output file.

Parameters:
outputFile - the ascii output file
Throws:
java.io.IOException

main

public static void main(java.lang.String[] argv)
Main program for this dumper. This program takes three arguments: 1. propsFile - the Sphinx properties file 2. audioFile - the name of the audio file 3. outputFile - the name of the binary output file