/external/srec/srec/crec/ |
D | c47mulsp.c | 30 int add_acoustic_model_for_recognition(multi_srec* recm, const SWIModel* model) in add_acoustic_model_for_recognition() argument 32 if (recm->num_swimodels >= MAX_ACOUSTIC_MODELS) in add_acoustic_model_for_recognition() 37 if (recm->num_activated_recs >= recm->num_allocated_recs) in add_acoustic_model_for_recognition() 43 if (recm->rec[0].num_model_slots_allocated < model->num_hmmstates) in add_acoustic_model_for_recognition() 46 recm->rec[0].num_model_slots_allocated, in add_acoustic_model_for_recognition() 51 recm->swimodel[ recm->num_swimodels] = model; in add_acoustic_model_for_recognition() 52 recm->num_swimodels++; in add_acoustic_model_for_recognition() 54 recm->num_activated_recs++; in add_acoustic_model_for_recognition() 58 int clear_acoustic_models_for_recognition(multi_srec* recm) in clear_acoustic_models_for_recognition() argument 60 recm->num_swimodels = 0; in clear_acoustic_models_for_recognition() [all …]
|
D | srec_results.c | 31 static srec* WHICH_RECOG(multi_srec* recm) in WHICH_RECOG() argument 37 for (i = 0; i < recm->num_activated_recs; i++) in WHICH_RECOG() 40 if (current_best_cost > recm->rec[i].current_best_cost) in WHICH_RECOG() 42 current_best_cost = recm->rec[i].current_best_cost; in WHICH_RECOG() 43 return_rec = &recm->rec[i]; in WHICH_RECOG() 51 int srec_get_bestcost_recog_id(multi_srec* recm, int* id) in srec_get_bestcost_recog_id() argument 53 srec* rec = WHICH_RECOG(recm); in srec_get_bestcost_recog_id() 76 int srec_has_results(multi_srec* recm) in srec_has_results() argument 78 srec* rec = WHICH_RECOG(recm); in srec_has_results() 92 int srec_clear_results(multi_srec* recm) in srec_clear_results() argument [all …]
|
D | rec_norm.c | 35 int inherit_recognition_statistics(utterance_info *utt, multi_srec *recm, in inherit_recognition_statistics() argument 40 multi_srec_get_speech_bounds(recm, &speech_start, &speech_end); in inherit_recognition_statistics()
|
D | word_lattice.c | 409 ESR_ReturnCode srec_get_top_choice_wordIDs(multi_srec* recm, wordID* wordIDs, size_t* len) argument 411 srec* rec = WHICH_RECOG(recm); 444 int srec_get_top_choice_transcription(multi_srec* recm, char *transcription, int len, int whether_s… argument 447 srec* rec = WHICH_RECOG(recm); 457 if( recm->eos_status == VALID_SPEECH_NOT_YET_DETECTED) 486 int srec_get_top_choice_score(multi_srec* recm, bigcostdata *cost, int do_incsil) argument 488 srec* rec = WHICH_RECOG(recm); 518 int srec_print_results(multi_srec *recm, int max_choices) argument 523 srec_get_top_choice_transcription(recm, transcription, MAX_LEN, 1); 524 srec_get_top_choice_score(recm, &cost, SCOREMODE_INCLUDE_SILENCE);
|
D | srec.c | 2002 int multi_srec_viterbi(multi_srec *recm, in multi_srec_viterbi() argument 2009 ASSERT(recm->num_activated_recs == recm->num_swimodels); in multi_srec_viterbi() 2010 if (recm->num_activated_recs == 1) in multi_srec_viterbi() 2013 srec* rec1 = &recm->rec[0]; in multi_srec_viterbi() 2019 srec_viterbi_part1(&recm->rec[0], recm->swimodel[0], pattern, DO_NOT_COMPUTE_MODEL); in multi_srec_viterbi() 2021 reset_cost_offsets(recm, rec1->current_search_frame, rec1->current_best_cost); in multi_srec_viterbi() 2024 srec_viterbi_part2(&recm->rec[0]); in multi_srec_viterbi() 2025 eosrc1 = srec_check_end_of_speech(eosd, &recm->rec[0]); in multi_srec_viterbi() 2030 SREC_STATS_UPDATE(&recm->rec[0]); in multi_srec_viterbi() 2031 recm->eos_status = eosrc1; in multi_srec_viterbi() [all …]
|
/external/srec/srec/ca/ |
D | rec_resu.c | 47 srec_get_top_choice_score(hRecog->recm, &cost, do_incsil); in CA_FullResultScore() 59 rc = srec_get_top_choice_transcription(hRecog->recm, label, len, 1); in CA_FullResultLabel() 76 srec_get_bestcost_recog_id(hRecog->recm, id); in CA_GetRecogID() 82 return srec_get_top_choice_wordIDs(hRecog->recm, wordIDs, len); in CA_FullResultWordIDs() 90 srec_clear_results(hRecog->recm); in CA_ClearResults() 103 if (!srec_has_results(hRecog->recm)) in CA_RecognitionHasResults() 113 return multi_srec_get_eos_status(hRecog->recm); in CA_IsEndOfUtteranceByResults()
|
D | rec_basi.c | 66 hRecog->recm = (multi_srec*)CALLOC_CLR(1, sizeof(multi_srec), "ca.hRecog.srec"); in CA_AllocateRecognition() 81 rc = allocate_recognition(hRecog->recm, in CA_ConfigureRecognition() 123 free_recognition(hRecog->recm); in CA_UnconfigureRecognition() 145 FREE(hRecog->recm); in CA_FreeRecognition() 168 begin_recognition(hRecog->recm, first_syntax_node); in CA_BeginRecognition() 193 rc = multi_srec_viterbi(hRecog->recm, in CA_AdvanceRecognitionByFrame() 221 end_recognition(hRecog->recm); in CA_EndRecognition() 225 if (!inherit_recognition_statistics(&hUtterance->data, hRecog->recm, in CA_EndRecognition()
|
D | syn_srec.c | 312 rc = activate_grammar_for_recognition(hRecog->recm, hSyntax->synx, rule); in CA_SetupSyntaxForRecognizer() 325 if(!hSyntax->synx || !hRecog->recm) in CA_CeilingSyntaxForRecognizer() 327 hSyntax->synx->max_searchable_nodes = hRecog->recm->max_fsm_nodes; in CA_CeilingSyntaxForRecognizer() 328 hSyntax->synx->max_searchable_arcs = hRecog->recm->max_fsm_arcs; in CA_CeilingSyntaxForRecognizer() 357 rc = clear_grammars_for_recognition(hRecog->recm); in CA_ClearSyntaxForRecognizer()
|
D | rec_load.c | 57 rc = add_acoustic_model_for_recognition(hRecog->recm, hAcoust->swimodel); in CA_LoadModelsInAcoustic() 69 rc = clear_acoustic_models_for_recognition(hRecog->recm); in CA_UnloadRecognitionModels()
|
D | rec_nbes.c | 48 newList = (CA_NBestList*)srec_nbest_prepare_list(hRecog->recm, num, bestScore); in CA_PrepareNBestList()
|
/external/srec/srec/include/ |
D | word_lattice.h | 45 ESR_ReturnCode srec_get_top_choice_wordIDs(multi_srec* recm, wordID* wordIDs, size_t* len);
|
D | simapi.h | 102 multi_srec *recm; /* contains recognition structure */ member
|