/external/srec/srec/clib/ |
D | srec_arb.c | 66 int get_modelid_for_pic(srec_arbdata* allotree, phonemeID lphon, phonemeID cphon, phonemeID rphon) in get_modelid_for_pic() argument 69 tree_node* tnode = allotree->pdata[cphon].model_nodes; in get_modelid_for_pic() 72 ans = question_check(&allotree->questions[tnode->node.quest_index], in get_modelid_for_pic() 118 int get_modelids_for_pron(srec_arbdata* allotree, in get_modelids_for_pron() argument 126 if( allotree == NULL) in get_modelids_for_pron() 135 lphon = (phonemeID)allotree->phoneme_index[ SILENCE_CODE]; in get_modelids_for_pron() 136 cphon = (phonemeID)allotree->phoneme_index[ (unsigned)phonemes[0]]; in get_modelids_for_pron() 139 cphon = (phonemeID)allotree->phoneme_index[ (unsigned)phonemes[0]]; in get_modelids_for_pron() 146 (phonemeID)allotree->phoneme_index[ SILENCE_CODE] : in get_modelids_for_pron() 147 (phonemeID)allotree->phoneme_index[ (unsigned)phonemes[i+1] ] ) ; in get_modelids_for_pron() [all …]
|
/external/srec/tools/make_ve_grammar/ |
D | make_ve_grammar.c | 97 srec_arbdata *allotree = NULL; in main() local 142 allotree = (srec_arbdata*)ca_arbdata; in main() 143 num_hmms = allotree->num_hmms; in main() 201 if(ws_verify(allotree->hmm_infos[i].name)) in main() 203 if(!strcmp(allotree->hmm_infos[i].name,"#")){ in main() 209 if(strlen(allotree->hmm_infos[i].name)>0){ in main() 215 i,allotree->hmm_infos[i].name,i,allotree->hmm_infos[i].name); in main() 216 fprintf(pFile_map,"wd_hmm%d_%s %d\n",i,allotree->hmm_infos[i].name,num_wd++); in main() 217 fprintf(pFile_Grev,"1\t3\twd_hmm%d_%s\n",i,allotree->hmm_infos[i].name); in main() 218 fprintf(pFile_P,"8\t10\twd_hmm%d_%s\t_%d\t\n",i,allotree->hmm_infos[i].name,script_line); in main() [all …]
|
/external/srec/tools/make_cfst/ |
D | make_cfst.cpp | 107 srec_arbdata *allotree = (srec_arbdata*)ca_arbdata; in main() local 133 …silenceModelId = (modelID)get_modelid_for_pic(allotree, silencePhonId, silencePhonId, silencePhonI… in main() 147 for(cphonId=0; cphonId<allotree->num_phonemes && cphonId<MAXPHID; cphonId++) { in main() 148 cphon = allotree->pdata[cphonId].code; in main() 149 printf("processing phoneme %d of %d %d %c\n", cphonId, allotree->num_phonemes, cphon, cphon); in main() 151 for(lphonId=0; lphonId<allotree->num_phonemes && lphonId<MAXPHID; lphonId++) { in main() 152 unsigned char lphon = allotree->pdata[lphonId].code; in main() 153 for(rphonId=0; rphonId<allotree->num_phonemes && rphonId<MAXPHID; rphonId++) { in main() 154 unsigned char rphon = allotree->pdata[rphonId].code; in main() 156 modelId = (modelID)get_modelid_for_pic(allotree, lphonId, cphonId, rphonId); in main() [all …]
|
/external/srec/srec/ca/ |
D | syn_srec.c | 46 int CA_AttachArbdataToSyntax(CA_Syntax* syntax, CA_Arbdata* allotree) in CA_AttachArbdataToSyntax() argument 49 rc = FST_AttachArbdata(syntax->synx, (srec_arbdata*)allotree); in CA_AttachArbdataToSyntax() 268 srec_arbdata *allotree = (srec_arbdata*)ca_arbdata; in CA_ArbdataGetModelIdsForPron() local 269 return get_modelids_for_pron( allotree, in CA_ArbdataGetModelIdsForPron() 279 srec_arbdata *allotree = (srec_arbdata*)ca_arbdata; in CA_ArbdataGetModelIdsForPIC() local 282 lphon_ID = (phonemeID)allotree->phoneme_index[ SILENCE_CODE]; in CA_ArbdataGetModelIdsForPIC() 288 lphon_ID = (phonemeID)allotree->phoneme_index[(const unsigned char)lphon]; in CA_ArbdataGetModelIdsForPIC() 289 cphon_ID = (phonemeID)allotree->phoneme_index[(const unsigned char)cphon]; in CA_ArbdataGetModelIdsForPIC() 292 rphon_ID = (phonemeID)allotree->phoneme_index[ SILENCE_CODE]; in CA_ArbdataGetModelIdsForPIC() 298 rphon_ID = (phonemeID)allotree->phoneme_index[(const unsigned char)rphon]; in CA_ArbdataGetModelIdsForPIC() [all …]
|
/external/srec/tools/test_swiarb/ |
D | test_swiarb.c | 63 srec_arbdata *allotree = NULL; in main() local 131 allotree = (srec_arbdata*)ca_arbdata; in main() 132 printf_vector("pel_ids: ", " %d", allotree->hmm_infos[model_sequence[j]].state_indices, in main() 133 (unsigned int) allotree->hmm_infos[model_sequence[j]].num_states); in main()
|
/external/srec/srec/include/ |
D | srec_arb.h | 118 int get_modelid_for_pic(srec_arbdata* allotree, 121 int get_modelids_for_pron(srec_arbdata* allotree, const char* phonemes,
|
D | srec_context.h | 138 srec_arbdata *allotree; /* for addword, knows hmm to state conversion */ member
|
/external/srec/tools/grxmlcompile/ |
D | vocab.cpp | 288 srec_arbdata *allotree = (srec_arbdata*) m_CA_Arbdata; in getStateIndices() local 289 int numStates = allotree->hmm_infos[id].num_states; in getStateIndices() 294 stateIDs.push_back( allotree->hmm_infos[id].state_indices[ii] ); in getStateIndices() 296 std::cout << allotree->hmm_infos[id].state_indices[ii] ; in getStateIndices()
|
/external/srec/srec/crec/ |
D | srec_context.c | 888 fst->allotree = allophone_tree; in FST_AttachArbdata() 1394 irc = get_modelids_for_pron(fst->allotree, phoneme_sequence, model_sequence_len, model_sequence); in FST_AddWordToGrammar() 1441 irc = get_modelids_for_pron(fst->allotree, phoneme_sequence, model_sequence_len, model_sequence); in FST_AddWordToGrammar()
|