#include <iostream>#include "ShiftedDeltaFeat.h"#include <alize.h>#include <liatools.h>
Go to the source code of this file.
Functions | |
| int | main (int argc, char *argv[]) |
| Reads a parametric file (or list of prm files) containing cepstral features and writes a file containing the shifted delta features. | |
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Reads a parametric file (or list of prm files) containing cepstral features and writes a file containing the shifted delta features.
| argc | number or arguments |
| argv | argument array - in usual Mistral format [see detailed description below for config params] |
Config-Params are: inputFeatureFilename could be a simple feature file or a list of filename featureServerMode should really be FEATURE_WRITABLE to write features to outpu file vectSize SDC param N (below) SDCdeltaDelay SDC param d (below) SDCtimeAdvance SDC param P (below) SDCdeltaBlocks SDC param k (below) [SDCkeepCepstra] bool, if we want to keep the cepstral features in the output
SDC parameters are: N number of cepstral coefficients d advance and delay for the delta computation (in each delta block) P time shift between consecutive delta blocks k number of delta blocks whose delta coefficients are concatenated to form the final feature vector
For each input vector at "time" t: ShDeltaO_h(t,i) = O_h( t + i*P + d) - O_h( t + i*P - d) ; i = 0, 1, 2 ... k-1 ; O_h is the input featureVector ShiftedDeltaCepstraVectorO_h(t) = concatenation of all ShDeltaO_h(t,i) ; i = 0, 1, 2 ... k-1
t t+P t+2P ... t+(k-1)P | | | | t-----------------------------------------------------> | | | | | | ... | | -d +d -d +d -d +d -d +d '-' '-' '-' '-' | | | | block0 block1 block2 .. block(k-1)
SDC-vector: [ block0' block1' block2' ... block(k-1)' ]' ; Thus, its dimension is k*N
There is the possibility to keep the cepstral features in the output vector: SDC-vector: [ cepstra' block0' block1' block2' ... block(k-1)' ]' ; with dimension N+(k*N)
Often used SDC parameters are: 7-1-3-7 or 7-1-3-4 or 10-1-3-3
Refs (param description and formula):
Definition at line 111 of file ShiftedDeltaFeatMain.cpp.
References debug, ShiftedDeltaFeat(), verbose, and verboseLevel.
1.7.2