HTS_EMBEDDED (slightly faster setting is used)
AUDIO_PLAY_WIN32 (for Windows 2000/XP/Vista C++ compiler) AUDIO_PLAY_WINCE (for Windows Mobile C++ compiler) AUDIO_PLAY_NONE (default)
FESTIVAL
WORDS_BIGENDIAN (e.g. PowerPC, Cell BE, SPARC, 680x0) WORDS_LITTLEENDIAN (e.g. x86, Alpha AXP)
TRUE FALSE
int size - # of windows (static + deltas) int *l_width - left width of windows int *r_width - right width of windows double **coefficient - window coefficients int max_width - maximum width of windows
char *string - pattern string HTS_Pattern *next - pointer to the next pattern
char *name - name of this question HTS_Pattern *head - pointer to the head of pattern list HTS_Question *next - pointer to the next question
int index - index of this node int pdf - index of PDF for this node (leaf node only) HTS_Node *yes - pointer to its child node (yes) HTS_Node *no - pointer to its child node (no) HTS_Node *next - pointer to the next node HTS_Question *quest - question applied at this node
HTS_Pattern *head - pointer to the head of pattern list for this tree HTS_Tree *next - pointer to the next tree HTS_Node *root - root node of this tree int state - state index of this tree
int vector_length - vector length (include static and dynamic features) int *npdf - # of PDFs at each tree double ***pdf - PDFs HTS_Tree *tree - pointer to the list of trees HTS_Question *question - pointer to the list of questions
int vector_length - vector_length (include static and dynamic features) HTS_Model *model - models HTS_DynamicWindow window - window coefficients HTS_Boolean msd_flag - flag for MSD int interpolation_size - # of models for interpolation
HTS_Stream duration - duration PDFs and trees HTS_Stream *stream - parameter PDFs, trees and windows HTS_Stream *gv - GV PDFs int nstate - # of HMM states int nstream - # of stream
HTS_LabelString *next - pointer to the next label string char *name - label string HTS_Boolean frame_flag - flag for frame length modification int frame - frame length specified in the given label
HTS_LabelString *head - pointer to the head of label string int size - # of label strings double speech_speed - speech speed rate
int vector_length - vector length (include static and dynamic features) double **mean - mean vector sequence double **vari - variance vector sequence double *msd - MSD parameter sequence int win_size - # of windows (static + deltas) int *win_l_width - left width of windows int *win_r_width - right width of windows double **win_coefficient - window coefficients int win_max_width - maximum width of windows double *gv_mean - mean vector of GV double *gv_vari - variance vector of GV
HTS_SStream *sstream - state streams int nstream - # of streams int nstate - # of states int *duration - duration sequence int total_state - total state int total_frame - total frame
double **mean - mean vector sequence double **ivar - inverse diag variance sequence double *g - vector used in the forward substitution double **wuw - W' U^-1 W double *wum - W' U^-1 mu
int vector_length - vector length (include static and dynamic features) int static_length - static features length int length - stream length int width - width of dynamic window double **par - output parameter vector HTS_SMatrices sm - matrices for parameter generation int win_size - # of windows (static + deltas) int *win_l_width - left width of windows int *win_r_width - right width of windows double **win_coefficient - window coefficients HTS_Boolean *msd_flag - Boolean sequence for MSD double *gv_buff - buffer for GV calculation double *gv_mean - mean vector of GV double *gv_vari - variance vector of GV double gv_weight - GV weight
HTS_PStream *pstream - PDF streams int nstream - # of PDF streams int total_frame - total frame
int static_length - static features length double **par - generated parameter
int total_nsample - total sample int total_frame - total frame int nstream - # of streams HTS_GStream *gstream - generated parameter streams short *gspeech - generated speech
int stage - Gamma=-1/stage : if stage=0 then Gamma=0 HTS_Boolean use_log_gain - log gain flag (for LSP) int sampling_rate - sampling rate int fperiod - frame period double alpha - all-pass constant double beta - postfiltering coefficient int audio_buff_size - audio buffer size (for audio device) double *msd_threshold - MSD thresholds double *duration_iw - weights for duration interpolation double **parameter_iw - weights for parameter interpolation double **gv_iw - weights for GV interpolation double *gv_weight - GV weights
HTS_Global global - global settings HTS_ModelSet ms - set of duration models, HMMs and GV models HTS_Label label - label HTS_SStreamSet sss - set of state streams HTS_PStreamSet pss - set of PDF streams HTS_GStreamSet gss - set of generated parameter streams
HWAVEOUT hwaveout - audio device handle WAVEFORMATEX waveformatex - wave formatex short *buff - current buffer int buff_size - current buffer size int which_buff - double buffering flag HTS_Boolean now_buff_1 - double buffering flag HTS_Boolean now_buff_2 - double buffering flag WAVEHDR buff_1 - buffer WAVEHDR buff_2 - buffer int max_buff_size - buffer size of audio output device
int i - make compiler happy
int stage - Gamma=-1/stage : if stage=0 then Gamma=0 double gamma - Gamma HTS_Boolean use_log_gain - log gain flag (for LSP) int fprd - frame shift int iprd - interpolation period int seed - seed of random generator unsigned long next - temporary variable for random generator HTS_Boolean gauss - flag to use Gaussian noise double rate - sampling rate double p1 - used in excitation generation double pc - used in excitation generation double p - used in excitation generation double inc - used in excitation generation int sw - switch used in random generator int x - excitation signal HTS_Audio *audio - pointer for audio device double *freqt_buff - used in freqt int freqt_size - buffer size for freqt double *spectrum2en_buff - used in spectrum2en int spectrum2en_size - buffer size for spectrum2en double r1, r2, s - used in random generator double *postfilter_buff - used in postfiltering int postfilter_size - buffer size for postfiltering double *c, *cc, *cinc, *d1 - used in the MLSA/MGLSA filter double *pade - used in mlsadf double *lsp2lpc_buff - used in lsp2lpc int lsp2lpc_size - buffer size of lsp2lpc double *gc2gc_buff - used in gc2gc int gc2gc_size - buffer size for gc2gc
void HTS_Engine_initialize(HTS_Engine *engine, int nstream)
HTS_Engine *engine - pointer to HTS_Engine structure
void HTS_Engine_load_duration_from_fn(HTS_Engine *engine, char **pdf_fn, char **tree_fn, int interpolation_size)
HTS_Engine *engine - pointer to HTS_Engine structure char **pdf_fn - duration PDF file names char **tree_fn - duration tree file names int interpolation_size - # of duration models to be interpolated
void HTS_Engine_load_duration_from_fp(HTS_Engine *engine, FILE **pdf_fp, FILE **tree_fp, int interpolation_size)
HTS_Engine *engine - pointer to HTS_Engine structure FILE **pdf_fp - duration PDF file pointers FILE **tree_fp - duration tree file pointers int interpolation_size - # of duration models to be interpolated
void HTS_Engine_load_parameter_from_fn(HTS_Engine *engine, char **pdf_fn, char **tree_fn, char **win_fn, int stream_index, HTS_Boolean msd_flag, int window_size, int interpolation_size)
HTS_Engine *engine - pointer to HTS_Engine structure char **pdf_fn - parameter PDF file pointers char **tree_fn - parameter tree file pointers char **win_fn - parameter window file pointers int stream_index - index of stream HTS_Boolean msd_flag - flag for MSD int window_size - # of windows int interpolation_size - # of parameter models to be interpolated
void HTS_Engine_load_parameter_from_fp(HTS_Engine *engine, FILE **pdf_fp, FILE **tree_fp, FILE **win_fp, int stream_index, HTS_Boolean msd_flag, int window_size, int interpolation_size)
HTS_Engine *engine - pointer to HTS_Engine structure FILE **pdf_fp - parameter PDF file pointers FILE **tree_fp - parameter tree file pointers FILE **win_fp - parameter window file pointers int stream_index - index of stream HTS_Boolean msd_flag - MSD flag int window_size - # of windows int interpolation_size - # of parameter models to be interpolated
void HTS_Engine_load_gv_from_fn(HTS_Engine *engine, char **pdf_fn, int stream_index, int interpolation_size)
HTS_Engine *engine - pointer to HTS_Engine structure char **pdf_fn - GV PDF file names int stream_index - index of streams int interpolation_size - # of GV models to be interpolated
void HTS_Engine_load_gv_from_fp(HTS_Engine *engine, FILE **pdf_fp, int stream_index, int interpolation_size)
HTS_Engine *engine - pointer to HTS_Engine structure FILE **pdf_fn - GV PDF file pointers int stream_index - index of streams int interpolation_size - # of GV models to be interpolated
void HTS_Engine_set_sampling_rate(HTS_Engine *engine,int i)
HTS_Engine *engine - pointer to HTS_Engine structure int i - sampling frequency (Hz), 1= < i <= 48000
void HTS_Engine_set_fperiod(HTS_Engine *engine,int i)
HTS_Engine *engine - pointer to HTS_Engine structure int i - frame shift (point), 1= < i <= 2000
void HTS_Engine_set_alpha(HTS_Engine *engine,double f)
HTS_Engine *engine - pointer to HTS_Engine structure double f - alpha, 0.0 <= f <= 1.0
void HTS_engine_set_gamma(HTS_Engine *engine,int i)
HTS_Engine *engine - pointer to HTS_Engine structure int i - Gamma=-1/i : if i=0 then Gamma=0, 0 <= i
void HTS_Engine_set_log_gain(HTS_Engine *engine,HTS_Boolean i)
HTS_Engine *engine - pointer to HTS_Engine structure HTS_Boolean i - log gain flag.
void HTS_SetBeta(HTS_Engine *engine,double f)
HTS_Engine *engine - pointer to HTS_Engine structure double f - beta, -0.8 <= f <= 0.8
void HTS_Engine_set_audio_buff_size(HTS_Engine *engine, int i)
HTS_Engine *engine - pointer to HTS_Engine structure int i - buffer size (sample), 0 <= i <= 48000
void HTS_Engine_set_msd_threshold(HTS_Engine *engine, int stream_index, double f)
HTS_Engine *engine - pointer to HTS_Engine structure int stream_index - index of streams double f - threshold
void HTS_Engine_set_duration_interpolation_weight(HTS_Engine *engine, int interpolation_index, double f)
HTS_Engine *engine - pointer to HTS_Engine structure int interpolation_index - index of duration models double f - interpolation weight
void HTS_Engine_set_parameter_interpolation_weight(HTS_Engine *engine, int stream_index, int interpolation_index, double f)
HTS_Engine *engine - pointer to HTS_Engine structure int stream_index - index of streams int interpolation_index - index of parameter models double f - interpolation weight
void HTS_Engine_set_gv_interpolation_weight(HTS_Engine *engine, int stream_index, int interpolation_index, double f)
HTS_Engine *engine - pointer to HTS_Engine structure int stream_index - index of streams int interpolation_index - index of GV models double f - interpolation weight
void HTS_Engine_set_gv_weight(HTS_Engine *engine, int stream_index, double f)
HTS_Engine *engine - pointer to HTS_Engine structure int stream_index - index of streams double f - GV weight
void HTS_Engine_load_label_from_fn(HTS_Engine *engine, char *fn)
HTS_Engine *engine - pointer to HTS_Engine structure char *fn - label file name
void HTS_Engine_load_label_from_fp(HTS_Engine *engine, FILE *fp)
HTS_Engine *engine - pointer to HTS_Engine structure FILE *fp - label file pointer
void HTS_Engine_load_label_from_string(HTS_Engine *engine, char *data)
HTS_Engine *engine - pointer to HTS_Engine structure char *data - label string
void HTS_Engine_load_label_from_string_list(HTS_Engine *engine, char **data, int size)
HTS_Engine *engine - pointer to HTS_Engine structure char **data - label string list int size - size of label string list
void HTS_Engine_create_sstream(HTS_Engine *engine)
HTS_Engine *engine - pointer to HTS_Engine structure
void HTS_Engine_create_pstream(HTS_Engine *engine)
HTS_Engine *engine - pointer to HTS_Engine structure
void HTS_Engine_create_gstream(HTS_Engine *engine)
HTS_Engine *engine - pointer to HTS_Engine structure
void HTS_Engine_save_infomation(HTS_Engine *engine, FILE *fp)
HTS_Engine *engine - pointer to HTS_Engine structure FILE *fp - output file pointer
void HTS_Engine_save_label(HTS_Engine *engine, FILE *fp)
HTS_Engine *engine - pointer to HTS_Engine structure FILE *fp - output file pointer
void HTS_Engine_save_generated_parameter(HTS_Engine *engine, FILE *fp)
HTS_Engine *engine - pointer to HTS_Engine structure FILE *fp - output file pointer
void HTS_Engine_save_generated_speech(HTS_Engine *engine, FILE *fp)
HTS_Engine *engine - pointer to HTS_Engine structure FILE *fp - output file pointer
void HTS_Engine_save_riff(HTS_Engine *engine, FILE *fp)
HTS_Engine *engine - pointer to HTS_Engine structure FILE *fp - output file pointer
void HTS_Engine_refresh(HTS_Engine *engine)
HTS_Engine *engine - pointer to HTS_Engine structure
void HTS_Engine_clear(HTS_Engine *engine)
HTS_Engine *engine - pointer to HTS_Engine structure
void HTS_Vocoder_initialize(HTS_Vocoder *v, const int m, const int stage, HTS_Boolean use_log_gain, const int rate, const int fperiod, int buff_size)
HTS_Vocoder *v - pointer to HTS_Vocoder structure int m - order of mel-cepstral coefficients int stage - Gamma=-1/stage : if stage=0 then Gamma=0 HTS_Boolean use_log_gain - log gain flag int rate - sampling frequency int fperiod - frame shift int buff_size - buffer size for direct audio output
void HTS_Vocoder_synthesize(HTS_Vocoder *v, const int m, double lf0, double *spectrum, double alpha, double beta, short *rawdata)
HTS_Vocoder *v - HTS_Vocoder structure pointer int m - order of spectrum coefficients double lf0 - log F0 value double *spectrum - spectrum coefficients double alpha - frequency warping parameter alpha double beta - postfiltering parameter beta short *rawdata - short pointer to store synthesized waveform
void HTS_Vocoder_postfilter_mcp(HTS_Vocoder *v, double *mcp, const int m, double alpha, double beta)
HTS_Vocoder *v - HTS_Vocoder structure pointer double *mcp - spectrum coefficients int m - order of mel-cepstral coefficients double alpha - frequency warping parameter alpha double beta - postfiltering parameter beta
void HTS_Vocoder_clear(HTS_Vocoder *v)
HTS_Vocoder *v - pointer to HTS_Vocoder structure
FILE *fp - output file pointer
char *str - output string