Home
last modified time | relevance | path

Searched refs:recogImpl (Results 1 – 4 of 4) sorted by relevance

/external/srec/srec/AcousticState/src/
DAcousticStateImpl.c30 SR_RecognizerImpl* recogImpl = (SR_RecognizerImpl*) recognizer; in SR_AcousticStateCreateImpl() local
32 if (recogImpl == NULL) in SR_AcousticStateCreateImpl()
51 recogImpl->acousticState = &impl->Interface; in SR_AcousticStateCreateImpl()
58 SR_RecognizerImpl* recogImpl = (SR_RecognizerImpl*) self; in SR_AcousticStateGetImpl() local
60 return CA_GetCMSParameters(recogImpl->wavein, param_string, len ); in SR_AcousticStateGetImpl()
66 SR_RecognizerImpl* recogImpl = (SR_RecognizerImpl*) self; in SR_AcousticStateSetImpl() local
68 return CA_SetCMSParameters(recogImpl->wavein, param_string ); in SR_AcousticStateSetImpl()
74 SR_RecognizerImpl* recogImpl = (SR_RecognizerImpl*) recognizer; in SR_AcousticStateDestroyImpl() local
75 SR_AcousticStateImpl* impl = (SR_AcousticStateImpl*) recogImpl->acousticState; in SR_AcousticStateDestroyImpl()
83 SR_RecognizerImpl* recogImpl = (SR_RecognizerImpl*) recognizer; in SR_AcousticStateResetImpl() local
[all …]
/external/srec/srec/Recognizer/src/
DRecognizerResultImpl.c31 ESR_ReturnCode SR_RecognizerResult_Create(SR_RecognizerResult** self, SR_RecognizerImpl* recogImpl) in SR_RecognizerResult_Create() argument
35 if (self == NULL || recogImpl == NULL) in SR_RecognizerResult_Create()
56 impl->recogImpl = recogImpl; in SR_RecognizerResult_Create()
73 if (impl->recogImpl->waveformBuffer->overflow_count == 0) in SR_RecognizerResult_GetWaveform()
75 *waveform = (asr_int16_t*)(((unsigned char *) impl->recogImpl->waveformBuffer->cbuffer) + in SR_RecognizerResult_GetWaveform()
76 sizeof(CircularBuffer) + impl->recogImpl->waveformBuffer->cbuffer->readIdx); in SR_RecognizerResult_GetWaveform()
78 *size = impl->recogImpl->waveformBuffer->read_size; in SR_RecognizerResult_GetWaveform()
84 impl->recogImpl->waveformBuffer->overflow_count); in SR_RecognizerResult_GetWaveform()
86 …r_int16_t*)(((unsigned char *) impl->recogImpl->waveformBuffer->cbuffer) + sizeof(CircularBuffer) … in SR_RecognizerResult_GetWaveform()
87 *size = impl->recogImpl->waveformBuffer->read_size; in SR_RecognizerResult_GetWaveform()
DRecognizerImpl.c1288 SR_RecognizerImpl* recogImpl = NULL; in SR_RecognizerSetupImpl() local
1305 recogImpl = (SR_RecognizerImpl*) self; in SR_RecognizerSetupImpl()
1321 CA_LoadModelsInAcoustic(recogImpl->recognizer, acoustic, acousticParams); in SR_RecognizerSetupImpl()
1325 recogImpl->models = models; in SR_RecognizerSetupImpl()
1326 CHKLOG(rc, modelsImpl->setupPattern(recogImpl->models, self)); in SR_RecognizerSetupImpl()
1331 if (recogImpl != NULL) in SR_RecognizerSetupImpl()
1332 CA_UnloadRecognitionModels(recogImpl->recognizer); in SR_RecognizerSetupImpl()
1529 SR_RecognizerImpl* recogImpl = (SR_RecognizerImpl*) self; in SR_RecognizerHasSetupRulesImpl() local
1538 CHKLOG(rc, HashMapGetSize(recogImpl->grammars, &size)); in SR_RecognizerHasSetupRulesImpl()
/external/srec/srec/Recognizer/include/
DSR_RecognizerResultImpl.h61 SR_RecognizerImpl* recogImpl; member
77 …SR_ReturnCode SR_RecognizerResult_Create(SR_RecognizerResult** self, SR_RecognizerImpl* recogImpl);