Preprocessor symbols for conditional compilation †
- Endian definition
WORDS_BIGENDIAN (e.g. PowerPC, Cell BE, SPARC, 680x0)
WORDS_LITTLEENDIAN (e.g. x86, Alpha AXP)
- Boolean definition (HTS_Boolean)
TRUE
FALSE
Engine structures †
Model †
HTS_Window †
HTS_Pattern †
HTS_Question †
HTS_Node †
HTS_Tree †
HTS_Model †
HTS_Stream †
HTS_ModelSet †
Label †
HTS_LabelString †
HTS_Label †
State stream †
HTS_SStream †
HTS_SStreamSet †
PDF stream †
HTS_SMatrices †
HTS_PStream †
HTS_PStreamSet †
Generated parameter stream †
HTS_GStream †
HTS_GStreamSet †
Engine †
HTS_Global †
HTS_Engine †
Vocoder structures †
Audio †
HTS_Audio †
- For MS Windows (Windows Mobile) audio output device.
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
- For Linux, etc.
int i - make compiler happy
Vocoder †
HTS_Vocoder †
- MLSA/MGLSA filter settings.
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
Engine functions †
Initialize engine †
HTS_Engine_initialize †
void HTS_Engine_initialize(HTS_Engine *engine, int nstream)
Load models †
HTS_Engine_load_duration_from_fn †
void HTS_Engine_load_duration_from_fn(HTS_Engine *engine, char **pdf_fn, char **tree_fn, int interpolation_size)
HTS_Engine_load_duration_from_fp †
void HTS_Engine_load_duration_from_fp(HTS_Engine *engine, FILE **pdf_fp, FILE **tree_fp, int interpolation_size)
HTS_Engine_load_parameter_from_fn †
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_load_parameter_from_fp †
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_load_gv_from_fn †
void HTS_Engine_load_gv_from_fn(HTS_Engine *engine, char **pdf_fn, int stream_index, int interpolation_size)
HTS_Engine_load_gv_from_fp †
void HTS_Engine_load_gv_from_fp(HTS_Engine *engine, FILE **pdf_fp, int stream_index, int interpolation_size)
Set parameter †
HTS_Engine_set_sampling_rate †
void HTS_Engine_set_sampling_rate(HTS_Engine *engine,int i)
HTS_Engine_set_fperiod †
void HTS_Engine_set_fperiod(HTS_Engine *engine,int i)
HTS_Engine_set_alpha †
void HTS_Engine_set_alpha(HTS_Engine *engine,double f)
HTS_Engine_set_gamma †
void HTS_engine_set_gamma(HTS_Engine *engine,int i)
HTS_Engine_use_log_gain †
void HTS_Engine_set_log_gain(HTS_Engine *engine,HTS_Boolean i)
HTS_Engine_set_beta †
void HTS_SetBeta(HTS_Engine *engine,double f)
HTS_Engine_set_audio_buff_size †
void HTS_Engine_set_audio_buff_size(HTS_Engine *engine, int i)
HTS_Engine_set_msd_threshold †
void HTS_Engine_set_msd_threshold(HTS_Engine *engine, int stream_index, double f)
HTS_Engine_set_duration_interpolation_weight †
void HTS_Engine_set_duration_interpolation_weight(HTS_Engine *engine, int interpolation_index, double f)
HTS_Engine_set_parameter_interpolation_weight †
void HTS_Engine_set_parameter_interpolation_weight(HTS_Engine *engine, int stream_index, int interpolation_index, double f)
HTS_Engine_set_gv_interpolation_weight †
void HTS_Engine_set_gv_interpolation_weight(HTS_Engine *engine, int stream_index, int interpolation_index, double f)
HTS_Engine_set_gv_weight †
void HTS_Engine_set_gv_weight(HTS_Engine *engine, int stream_index, double f)
Synthesize speech †
HTS_Engine_load_label_from_fn †
void HTS_Engine_load_label_from_fn(HTS_Engine *engine, char *fn)
HTS_Engine_load_label_from_fp †
void HTS_Engine_load_label_from_fp(HTS_Engine *engine, FILE *fp)
HTS_Engine_load_label_from_string †
void HTS_Engine_load_label_from_string(HTS_Engine *engine, char *data)
HTS_Engine_load_label_from_string_list †
void HTS_Engine_load_label_from_string_list(HTS_Engine *engine, char **data, int size)
HTS_Engine_create_sstream †
void HTS_Engine_create_sstream(HTS_Engine *engine)
HTS_Engine_create_pstream †
void HTS_Engine_create_pstream(HTS_Engine *engine)
HTS_Engine_create_gstream †
void HTS_Engine_create_gstream(HTS_Engine *engine)
HTS_Engine_save_infomation †
void HTS_Engine_save_infomation(HTS_Engine *engine, FILE *fp)
HTS_Engine_save_label †
void HTS_Engine_save_label(HTS_Engine *engine, FILE *fp)
HTS_Engine_save_generated_parameter †
void HTS_Engine_save_generated_parameter(HTS_Engine *engine, FILE *fp)
HTS_Engine_save_generated_speech †
void HTS_Engine_save_generated_speech(HTS_Engine *engine, FILE *fp)
HTS_Engine_save_riff †
void HTS_Engine_save_riff(HTS_Engine *engine, FILE *fp)
HTS_Engine_refresh †
void HTS_Engine_refresh(HTS_Engine *engine)
Free engine †
HTS_Engine_clear †
void HTS_Engine_clear(HTS_Engine *engine)
Vocoder functions †
Initialize vocoder †
HTS_Vocoder_initialize †
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)
Synthesize speech †
HTS_Vocoder_synthesize †
void HTS_Vocoder_synthesize(HTS_Vocoder *v, const int m, double lf0, double *spectrum, double alpha, double beta, short *rawdata)
HTS_Vocoder_postfilter_mcp †
void HTS_Vocoder_postfilter_mcp(HTS_Vocoder *v, double *mcp, const int m, double alpha, double beta)
Free vocoder †
HTS_Vocoder_clear †
void HTS_Vocoder_clear(HTS_Vocoder *v)
Other functions †
For copyright †
void HTS_show_copyright(FILE *fp) †
void HTS_get_copyright(char *str) †