#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "segCommon.h"
#include "segDecoder.h"
Functions | |
int | segWriteAlignedVectors (FILE *aMatFptr, FILE *iMatFptr, SEG_STATE **stateId, int *stateSeq, SEG_SYNTAX *syn, double **spData, int sT, int eT) |
Write out aligned sets of articulatory trajectory values and acoustic vectors. |
int segWriteAlignedVectors | ( | FILE * | aMatFptr, | |
FILE * | iMatFptr, | |||
SEG_STATE ** | stateId, | |||
int * | stateSeq, | |||
SEG_SYNTAX * | syn, | |||
double ** | spData, | |||
int | sT, | |||
int | eT | |||
) |
Write out aligned sets of articulatory trajectory values and acoustic vectors.
This function writes the intermediate (articulatory) and acoustic vectors corresponding to an aligned utterance to different files, which can be compared with the original data for system analysis.
[in] | aMatFptr | File pointer to the acoustic feature file |
[in] | iMatFptr | File pointer to the articulatory feature file |
[in] | stateId | Array of state identities of the best state sequence |
[in] | stateSeq | Best state-number sequence |
[in] | syn | Syntax |
[in] | spData | Feature vectors of actual speech |
[in] | sT | Start time (frame) of the utterance |
[in] | eT | End time (frame) of the utterance |
RTN_ERROR | Memory allocation error | |
NO_ERROR | Successfully executed |