Home | History | Annotate | Download | only in crec

Lines Matching refs:recm

30 int add_acoustic_model_for_recognition(multi_srec* recm, const SWIModel* model)
32 if (recm->num_swimodels >= MAX_ACOUSTIC_MODELS)
37 if (recm->num_activated_recs >= recm->num_allocated_recs)
43 if (recm->rec[0].num_model_slots_allocated < model->num_hmmstates)
46 recm->rec[0].num_model_slots_allocated,
51 recm->swimodel[ recm->num_swimodels] = model;
52 recm->num_swimodels++;
54 recm->num_activated_recs++;
58 int clear_acoustic_models_for_recognition(multi_srec* recm)
60 recm->num_swimodels = 0;
61 recm->num_activated_recs = 0;
65 void begin_recognition(multi_srec *recm, int begin_syn_node)
69 ASSERT(recm->num_activated_recs == recm->num_swimodels);
70 for (i = 0; i < recm->num_activated_recs; i++)
72 srec_begin(&recm->rec[i], begin_syn_node);
73 for (i = 0;i < recm->max_fsm_nodes;i++)
74 recm->best_token_for_node[i] = MAXftokenID;
75 recm->eos_status = VALID_SPEECH_CONTINUING;
78 void end_recognition(multi_srec *recm)
85 for (i = 0; i < recm->num_activated_recs; i++)
87 srec_no_more_frames(&recm->rec[i]);
91 int activate_grammar_for_recognition(multi_srec* recm, srec_context* grammar, const char* rule)
95 context->max_searchable_nodes = recm->max_fsm_nodes;
96 context->max_searchable_arcs = recm->max_fsm_arcs;
108 for (i = 0; i < recm->num_allocated_recs; i++)
109 recm->rec[i].context = context;
118 int clear_grammars_for_recognition(multi_srec* recm)
121 for (i = 0; i < recm->num_allocated_recs; i++)
123 recm->rec[i].context = NULL;