pstLfespdEng = LDEEW_RUN(pcMemPool, memPoolLen, "words=xiao ai tong xue,da sheng yi dian,xiao sheng yi dian,zan ting bo fang,xia yi shou;thresh=0.60,0.32,0.32,0.33,0.33;", wtk_handler, aec_handler); //唤醒词:小爱同学
/* pstLfespdEng = LDEEW_RUN(pcMemPool, memPoolLen, "words=ni hao xiao le,da sheng yi dian,xiao sheng yi dian,zan ting bo fang,xia yi shou;thresh=0.60,0.32,0.32,0.33,0.33;", wtk_handler, aec_handler); //唤醒词:你好小乐 */
if (NULL == pstLfespdEng || pstLfespdEng == (void *)0xffffffff) {
printf("LDEEW_Start auth fail \n");
free(pcMemPool);
return;
}
printf("LDEEW_Start auth OK \n");
#endif
__this->auth_flag = 1;
aisp_resume();
int start_time = timer_get_ms();
while (1) {
if (__this->exit_flag) {
break;
}
if (!__this->run_flag) {
os_sem_pend(&__this->sem, 0);
continue;
}
if (__this->exit_flag) {
break;
}
#ifndef CONFIG_AISP_DIFFER_MIC_REPLACE_LINEIN
if ((cbuf_get_data_size(&__this->mic_cbuf) < ONCE_SR_POINTS * 2 * (AISP_DUAL_MIC_ALGORITHM + 1))
pstLfespdEng = LDEEW_RUN(pcMemPool, memPoolLen, "words=xiao ai tong xue,da sheng yi dian,xiao sheng yi dian,zan ting bo fang,xia yi shou;thresh=0.60,0.32,0.32,0.33,0.33;", wtk_handler, aec_handler); //唤醒词:小爱同学
/* pstLfespdEng = LDEEW_RUN(pcMemPool, memPoolLen, "words=ni hao xiao le,da sheng yi dian,xiao sheng yi dian,zan ting bo fang,xia yi shou;thresh=0.60,0.32,0.32,0.33,0.33;", wtk_handler, aec_handler); //唤醒词:你好小乐 */
if (NULL == pstLfespdEng || pstLfespdEng == (void *)0xffffffff) {
printf("LDEEW_Start auth fail \n");
free(pcMemPool);
return;
}
printf("LDEEW_Start auth OK \n");
#endif
__this->auth_flag = 1;
aisp_resume();
int start_time = timer_get_ms();
while (1) {
if (__this->exit_flag) {
break;
}
if (!__this->run_flag) {
os_sem_pend(&__this->sem, 0);
continue;
}
if (__this->exit_flag) {
break;
}
#ifndef CONFIG_AISP_DIFFER_MIC_REPLACE_LINEIN
if ((cbuf_get_data_size(&__this->mic_cbuf) < ONCE_SR_POINTS * 2 * (AISP_DUAL_MIC_ALGORITHM + 1))
pstLfespdEng = LDEEW_RUN(pcMemPool, memPoolLen, "words=xiao ai tong xue,da sheng yi dian,xiao sheng yi dian,zan ting bo fang,xia yi shou;thresh=0.60,0.32,0.32,0.33,0.33;", wtk_handler, aec_handler); //唤醒词:小爱同学
/* pstLfespdEng = LDEEW_RUN(pcMemPool, memPoolLen, "words=ni hao xiao le,da sheng yi dian,xiao sheng yi dian,zan ting bo fang,xia yi shou;thresh=0.60,0.32,0.32,0.33,0.33;", wtk_handler, aec_handler); //唤醒词:你好小乐 */
if (NULL == pstLfespdEng || pstLfespdEng == (void *)0xffffffff) {
printf("LDEEW_Start auth fail \n");
free(pcMemPool);
return;
}
printf("LDEEW_Start auth OK \n");
#endif
__this->auth_flag = 1;
aisp_resume();
int start_time = timer_get_ms();
while (1) {
if (__this->exit_flag) {
break;
}
if (!__this->run_flag) {
os_sem_pend(&__this->sem, 0);
continue;
}
if (__this->exit_flag) {
break;
}
#ifndef CONFIG_AISP_DIFFER_MIC_REPLACE_LINEIN
if ((cbuf_get_data_size(&__this->mic_cbuf) < ONCE_SR_POINTS * 2 * (AISP_DUAL_MIC_ALGORITHM + 1))
pstLfespdEng = LDEEW_RUN(pcMemPool, memPoolLen, "words=xiao ai tong xue,da sheng yi dian,xiao sheng yi dian,zan ting bo fang,xia yi shou;thresh=0.60,0.32,0.32,0.33,0.33;", wtk_handler, aec_handler); //唤醒词:小爱同学
/* pstLfespdEng = LDEEW_RUN(pcMemPool, memPoolLen, "words=ni hao xiao le,da sheng yi dian,xiao sheng yi dian,zan ting bo fang,xia yi shou;thresh=0.60,0.32,0.32,0.33,0.33;", wtk_handler, aec_handler); //唤醒词:你好小乐 */
if (NULL == pstLfespdEng || pstLfespdEng == (void *)0xffffffff) {
printf("LDEEW_Start auth fail \n");
free(pcMemPool);
return;
}
printf("LDEEW_Start auth OK \n");
#endif
__this->auth_flag = 1;
aisp_resume();
int start_time = timer_get_ms();
while (1) {
if (__this->exit_flag) {
break;
}
if (!__this->run_flag) {
os_sem_pend(&__this->sem, 0);
continue;
}
if (__this->exit_flag) {
break;
}
#ifndef CONFIG_AISP_DIFFER_MIC_REPLACE_LINEIN
if ((cbuf_get_data_size(&__this->mic_cbuf) < ONCE_SR_POINTS * 2 * (AISP_DUAL_MIC_ALGORITHM + 1))
pstLfespdEng = LDEEW_RUN(pcMemPool, memPoolLen, "words=xiao ai tong xue,da sheng yi dian,xiao sheng yi dian,zan ting bo fang,xia yi shou;thresh=0.60,0.32,0.32,0.33,0.33;", wtk_handler, aec_handler); //唤醒词:小爱同学
/* pstLfespdEng = LDEEW_RUN(pcMemPool, memPoolLen, "words=ni hao xiao le,da sheng yi dian,xiao sheng yi dian,zan ting bo fang,xia yi shou;thresh=0.60,0.32,0.32,0.33,0.33;", wtk_handler, aec_handler); //唤醒词:你好小乐 */
if (NULL == pstLfespdEng || pstLfespdEng == (void *)0xffffffff) {
printf("LDEEW_Start auth fail \n");
free(pcMemPool);
return;
}
printf("LDEEW_Start auth OK \n");
#endif
__this->auth_flag = 1;
aisp_resume();
int start_time = timer_get_ms();
while (1) {
if (__this->exit_flag) {
break;
}
if (!__this->run_flag) {
os_sem_pend(&__this->sem, 0);
continue;
}
if (__this->exit_flag) {
break;
}
#ifndef CONFIG_AISP_DIFFER_MIC_REPLACE_LINEIN
if ((cbuf_get_data_size(&__this->mic_cbuf) < ONCE_SR_POINTS * 2 * (AISP_DUAL_MIC_ALGORITHM + 1))
pstLfespdEng = LDEEW_RUN(pcMemPool, memPoolLen, "words=xiao ai tong xue,da sheng yi dian,xiao sheng yi dian,zan ting bo fang,xia yi shou;thresh=0.60,0.32,0.32,0.33,0.33;", wtk_handler, aec_handler); //唤醒词:小爱同学
/* pstLfespdEng = LDEEW_RUN(pcMemPool, memPoolLen, "words=ni hao xiao le,da sheng yi dian,xiao sheng yi dian,zan ting bo fang,xia yi shou;thresh=0.60,0.32,0.32,0.33,0.33;", wtk_handler, aec_handler); //唤醒词:你好小乐 */
if (NULL == pstLfespdEng || pstLfespdEng == (void *)0xffffffff) {
printf("LDEEW_Start auth fail \n");
free(pcMemPool);
return;
}
printf("LDEEW_Start auth OK \n");
#endif
__this->auth_flag = 1;
aisp_resume();
int start_time = timer_get_ms();
while (1) {
if (__this->exit_flag) {
break;
}
if (!__this->run_flag) {
os_sem_pend(&__this->sem, 0);
continue;
}
if (__this->exit_flag) {
break;
}
#ifndef CONFIG_AISP_DIFFER_MIC_REPLACE_LINEIN
if ((cbuf_get_data_size(&__this->mic_cbuf) < ONCE_SR_POINTS * 2 * (AISP_DUAL_MIC_ALGORITHM + 1))
pstLfespdEng = LDEEW_RUN(pcMemPool, memPoolLen, "words=xiao ai tong xue,da sheng yi dian,xiao sheng yi dian,zan ting bo fang,xia yi shou;thresh=0.60,0.32,0.32,0.33,0.33;", wtk_handler, aec_handler); //唤醒词:小爱同学
/* pstLfespdEng = LDEEW_RUN(pcMemPool, memPoolLen, "words=ni hao xiao le,da sheng yi dian,xiao sheng yi dian,zan ting bo fang,xia yi shou;thresh=0.60,0.32,0.32,0.33,0.33;", wtk_handler, aec_handler); //唤醒词:你好小乐 */
if (NULL == pstLfespdEng || pstLfespdEng == (void *)0xffffffff) {
printf("LDEEW_Start auth fail \n");
free(pcMemPool);
return;
}
printf("LDEEW_Start auth OK \n");
#endif
__this->auth_flag = 1;
aisp_resume();
int start_time = timer_get_ms();
while (1) {
if (__this->exit_flag) {
break;
}
if (!__this->run_flag) {
os_sem_pend(&__this->sem, 0);
continue;
}
if (__this->exit_flag) {
break;
}
#ifndef CONFIG_AISP_DIFFER_MIC_REPLACE_LINEIN
if ((cbuf_get_data_size(&__this->mic_cbuf) < ONCE_SR_POINTS * 2 * (AISP_DUAL_MIC_ALGORITHM + 1))