quick start:g++ [flags ...] file ... -l /isip/tools/lib/$ISIP_BINARY/lib_asr.a #include <SpeechRecognizer.h> SpeechRecognizer(); boolean setParam(const Filename& arg); boolean setVerify(boolean verify); boolean run(Sdb& sdb);
description:SpeechRecognizer sr; sr.setParam(L"diagnose_params.sof"); Sdb raw_list_sdb; boolean is_list = true; raw_list_sdb.append(L"diagnose_mfcc_list.sof", is_list); sr.run(sdb);
static const String CLASS_NAME = L"SpeechRecognizer";
enum ALGORITHM { HMM = 0, BN, NN, DEF_ALGORITHM = HMM };
static const long ERR = 110000;
ALGORITHM algorithm_d;
boolean verify_d;
Filename param_file_name_d;
HiddenMarkovModel hmm_d;
static Integral::DEBUG debug_level_d;
static Integral::DEBUG verbosity_d;
static MemoryManager mgr_d;
static const String& name();
static boolean diagnose(Integral::DEBUG debug_level);
boolean setDebug(Integral::DEBUG debug_level);
~SpeechRecognizer();
SpeechRecognizer();
boolean setStream(boolean stream);
boolean setAlgorithm(ALGORITHM algorithm);
boolean setParam(String param_file_name);
boolean setVerbosity(Integral::DEBUG verbosity);
boolean setVerify(boolean verify);
boolean setLanguageModelFile(String& lm_file);
boolean setLanguageModelUpdateFile(String& lm_file);
boolean setStatisticalModelPoolFile(String& ac_file);
boolean setStatisticalModelPoolUpdateFile(String& ac_file);
boolean setFunctionMode(String& function_mode);
boolean setOutputMode(String& output_mode);
boolean setOutputFormat(String& output_format);
boolean setAccumulatorFile(Filename& accum_file);
boolean setAccumulatorList(Filename& accum_list);
boolean setOutputFile(Filename& output_file);
boolean setSplitThreshold(const String& split_threshold);
boolean setMergeThreshold(const String& merge_threshold);
boolean setNumOccThreshold(const String& num_occ_threshold);
boolean setDecisionTreeFile(const Filename& arg);
boolean setQuesAnswerFile(const Filename& arg);
boolean setOutputList(Filename& output_list);
boolean setOutputLevelString(String& output_level);
boolean setUpdateLevelString(String& update_level);
boolean setAccumulatorPath(Filename& accumulator_path);
boolean setAccumulatorName(String& accumulator_name);
ALGORITHM getAlgorithm() const;
boolean run(Sdb& sdb);
// declare a speech recognizer object // SpeechRecognizer sr; // set up the speech recognizer parameters // sr.setParam(L"params.sof"); // setup the input speech file list // Sdb raw_list_sdb; boolean is_list = true; raw_list_sdb.append(L"test_list.sof", is_list); // run the speech recognizer on the input speech file list // sr.run(raw_list_sdb);