Home
last modified time | relevance | path

Searched refs:hRecog (Results 1 – 7 of 7) sorted by relevance

/external/srec/srec/ca/
Drec_basi.c44 CA_Recog *hRecog = NULL; in CA_AllocateRecognition() local
58 hRecog = (CA_Recog *) CALLOC_CLR(1, sizeof(CA_Recog), "ca.hRecog"); in CA_AllocateRecognition() local
60 hRecog->setup_count = 0; in CA_AllocateRecognition()
61 hRecog->is_running = False; in CA_AllocateRecognition()
62 hRecog->is_configured = False; in CA_AllocateRecognition()
63 hRecog->is_resultBlocked = False; in CA_AllocateRecognition()
64 hRecog->ca_rtti = CA_RECOGNIZER_SIGNATURE; in CA_AllocateRecognition()
66 hRecog->recm = (multi_srec*)CALLOC_CLR(1, sizeof(multi_srec), "ca.hRecog.srec"); in CA_AllocateRecognition()
67 return (hRecog); in CA_AllocateRecognition()
70 END_CATCH_CA_EXCEPT(hRecog) in CA_AllocateRecognition()
[all …]
Drec_resu.c43 int CA_FullResultScore(CA_Recog *hRecog, int *score, int do_incsil) in CA_FullResultScore() argument
47 srec_get_top_choice_score(hRecog->recm, &cost, do_incsil); in CA_FullResultScore()
54 int CA_FullResultLabel(CA_Recog *hRecog, char *label, int len) in CA_FullResultLabel() argument
59 rc = srec_get_top_choice_transcription(hRecog->recm, label, len, 1); in CA_FullResultLabel()
65 END_CATCH_CA_EXCEPT(hRecog) in CA_FullResultLabel()
74 ESR_ReturnCode CA_GetRecogID(CA_Recog *hRecog, int *id) in CA_GetRecogID() argument
76 srec_get_bestcost_recog_id(hRecog->recm, id); in CA_GetRecogID()
80 ESR_ReturnCode CA_FullResultWordIDs(CA_Recog *hRecog, wordID *wordIDs, size_t* len) in CA_FullResultWordIDs() argument
82 return srec_get_top_choice_wordIDs(hRecog->recm, wordIDs, len); in CA_FullResultWordIDs()
85 void CA_ClearResults(CA_Recog *hRecog) in CA_ClearResults() argument
[all …]
Drec_load.c43 void CA_LoadModelsInAcoustic(CA_Recog *hRecog, CA_Acoustic *hAcoust, in CA_LoadModelsInAcoustic() argument
48 ASSERT(hRecog); in CA_LoadModelsInAcoustic()
57 rc = add_acoustic_model_for_recognition(hRecog->recm, hAcoust->swimodel); in CA_LoadModelsInAcoustic()
61 END_CATCH_CA_EXCEPT(hRecog) in CA_LoadModelsInAcoustic()
65 void CA_UnloadRecognitionModels(CA_Recog *hRecog) in CA_UnloadRecognitionModels() argument
69 rc = clear_acoustic_models_for_recognition(hRecog->recm); in CA_UnloadRecognitionModels()
71 END_CATCH_CA_EXCEPT(hRecog) in CA_UnloadRecognitionModels()
Dsyn_srec.c308 int CA_SetupSyntaxForRecognizer(CA_Syntax *hSyntax, CA_Recog *hRecog) in CA_SetupSyntaxForRecognizer() argument
312 rc = activate_grammar_for_recognition(hRecog->recm, hSyntax->synx, rule); in CA_SetupSyntaxForRecognizer()
321 int CA_CeilingSyntaxForRecognizer(CA_Syntax *hSyntax, CA_Recog *hRecog) in CA_CeilingSyntaxForRecognizer() argument
323 if(!hSyntax || !hRecog) in CA_CeilingSyntaxForRecognizer()
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()
353 void CA_ClearSyntaxForRecognizer(CA_Syntax *hSyntax, CA_Recog *hRecog) in CA_ClearSyntaxForRecognizer() argument
357 rc = clear_grammars_for_recognition(hRecog->recm); in CA_ClearSyntaxForRecognizer()
Drec_nbes.c41 CA_NBestList *CA_PrepareNBestList(CA_Recog *hRecog, int num, asr_int32_t *bestScore) in CA_PrepareNBestList() argument
46 ASSERT(hRecog); in CA_PrepareNBestList()
48 newList = (CA_NBestList*)srec_nbest_prepare_list(hRecog->recm, num, bestScore); in CA_PrepareNBestList()
52 END_CATCH_CA_EXCEPT(hRecog) in CA_PrepareNBestList()
Dann_api.c113 int CA_AnnotateFromResults(CA_Annotation* hAnnotation, CA_Recog *hRecog) in CA_AnnotateFromResults() argument
119 ASSERT(hRecog); in CA_AnnotateFromResults()
126 seg_cnt = annotation_from_results(hAnnotation->data, &hRecog->rec); in CA_AnnotateFromResults()
/external/srec/srec/include/
Dsimapi.h1469 CA_Recog *hRecog);
1487 CA_Recog *hRecog);
1508 CA_Recog *hRecog);
1642 void CA_UnconfigureRecognition(CA_Recog *hRecog);
1657 void CA_FreeRecognition(CA_Recog *hRecog);
1672 void CA_BeginRecognition(CA_Recog *hRecog,
1704 void CA_AdvanceRecognitionByFrame(CA_Recog *hRecog,
1756 int CA_EndRecognition(CA_Recog *hRecog,
1781 int CA_DiscardRecognition(CA_Recog *hRecog,
1806 CA_Recog *hRecog);
[all …]