51 #include <sphinxbase/fe.h>
53 const char helpstr[] =
55 Extract acoustic features form from audio file.\n\
57 The main parameters that affect the final output, with typical values, are:\n\
59 samprate, typically 8000, 11025, or 16000\n\
60 lowerf, 130, 200, 130, for the respective sampling rates above\n\
61 upperf, 3700, 5200, 6800, for the respective sampling rates above\n\
62 nfilt, 31, 37, 40, for the respective sampling rates above\n\
64 format, raw or nist or mswav\n\
67 const char examplestr[] =
69 This example creates a cepstral file named \"output.mfc\" from an input audio file named \"input.raw\", which is a raw audio file (no header information), which was originally sampled at 16kHz. \n\
71 sphinx_fe -i input.raw \n\
73 -input_endian little \n\
80 static arg_t defn[] = {
84 "Shows the usage of the tool"},
89 "Shows example of how to use the tool"},
91 waveform_to_cepstral_command_line_macro(),
96 "Argument file (e.g. feat.params from an acoustic model) to read parameters from. This will override anything set in other command line arguments." },
101 "Single audio input file" },
106 "Single cepstral output file" },
111 "Control file for batch processing" },
116 "If a control file was specified, the number of utterances to skip at the head of the file" },
121 "If a control file was specified, the number of utterances to process, or -1 for all" },
126 "Index of the part to run (supersedes -nskip and -runlen if non-zero)" },
131 "Number of parts to run in (supersedes -nskip and -runlen if non-zero)" },
136 "Input directory, input file names are relative to this, if defined" },
141 "Input extension to be applied to all input files" },
146 "Output directory, output files are relative to this" },
151 "Output extension to be applied to all output files" },
156 "Create missing subdirectories in output directory" },
161 "Input is NIST sphere (possibly with Shorten), use sph2pipe to convert" },
166 "Defines input format as NIST sphere" },
171 "Defines input format as raw binary data" },
176 "Defines input format as Microsoft Wav (RIFF)" },
181 "Number of channels of data (interlaced samples assumed)" },
186 "Channel to process (numbered from 1), or 0 to mix all channels" },
191 "Format of output files - one of sphinx, htk, text." },
195 #ifdef WORDS_BIGENDIAN
200 "Endianness of machine, big or little" },
205 "Number of samples to read at a time." },
210 "Input is log spectral files, output is cepstral files" },
215 "Input is cepstral files, output is log spectral files" },
217 { NULL, 0, NULL, NULL }
221 #define CMD_LN_DEFN_H
Command-line and other configurationparsing and handling.
#define ARG_STRING
String argument (optional).
#define ARG_BOOLEAN
Boolean (true/false) argument (optional).
Argument definition structure.