⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 itri_read_0.cc

📁 这是处理语音信号的程序
💻 CC
字号:
// file: itri_read_0.cc//// isip include files//#include "init_triphones.h"#include "init_triphones_constants.h" // method: read_states_cc//// arguments://  FILE* fp : (input) input file pointer//  int_4& num_st : (output) number of states//  int_4& num_feat : (output) number of features in data vector//  // return: a State** pointing to a list of States//// this method reads the State models from file --- each mixture// component in the states is assumed to have a diagonal covariance// matrix//Train_State** read_states_cc(FILE* fp_a, int_4& num_st_a, int_4& num_feat_a) {    // read the number of features and number of states  //  fread((void_p)&num_feat_a, sizeof(int_4), 1, fp_a);  fread((void_p)&num_st_a, sizeof(int_4), 1, fp_a);    // initialize the states  //  Train_State::set_num_features_cc(num_feat_a);  Train_State** states = (Train_State**)NULL;  states = new Train_State*[num_st_a];    // read state data from file  //  for (int_4 i = 0; i < num_st_a; i++) {    // create state memory    //    states[i] = new Train_State();    // read the parameters for this state    //    states[i]->read_data_cc(fp_a);    states[i]->set_state_index_cc(i);  }  // exit gracefully  //  return states;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -