/**************************************************************************/ /* File: hmm_model.h */ /**************************************************************************/ /* Project: Continuous Speech Recognition Search Algorithms */ /* Author: Neeraj Deshmukh, Aravind Ganapathiraju */ /* Class: EE 8993 Spring 1996 Date: March 12, 1996 */ /**************************************************************************/ /*======================================================================== This file declares the HMM class that models the various phonemes (triphones) for the EE 8993 speech recognizer ========================================================================*/ /*------------------------------------------------------------------------ make sure definitions are only made once ------------------------------------------------------------------------*/ #ifndef __ISIP_HMM #define __ISIP_HMM /*------------------------------------------------------------------------ system and ISIP include files ------------------------------------------------------------------------*/ #include "hmm_matrix.h" #include "hmm_state.h" #include "linked_list.h" /*------------------------------------------------------------------------ forward declaration of classes ------------------------------------------------------------------------*/ class HMM_model; class HMM_Matrix; class HMM_State; class HMM_Trans_State; class Linked_List; #define DEFAULT_NUM_OF_STATES 5 class HMM_Model { protected: int_2 num_of_states_d; HMM_State *states; String model_symbol_d; //public methods // public: /*--------------------------- constructors and destructor ---------------------------*/ //default constructor // HMM_Model( String model_symbol_l = NULL, int_2 num_of_states_l = DEFAULT_NUM_OF_STATES); ~HMM_Model(); /*---------------------- input / output methods ----------------------*/ void set_model_symbol_cc ( String model_symbol_l ); String get_model_symbol_cc (); void set_num_of_states_cc ( int_2 num_of_states_l ); float_8 get_trans_score_cc (String from_state_name, String to_state_name ); HMM_State *add_state_cc ( String state_name ); HMM_State *get_states_cc (); HMM_State *get_start_state_cc (); HMM_State *get_stop_state_cc (); /*---------------------- calculating methods ----------------------*/ }; #endif