#ifndef _LSTMANS_H_ #define _LSTMANS_H_ #include typedef struct LstmAnsContext { // for ans common process short *in_buff_ans; // buffer used as internal buffer to store near data for conjunction. unsigned int in_buff_len_ans; // the length of the near buffer, normally is 2 x chunkbytesize. unsigned int in_buff_data_remain_len_ans; // the length of the valid data that stored in near buffer. short *out_buff_ans; // buffer used as internal buffer to store aec produced data for conjunction. unsigned int out_buff_len_ans; // the length of the out buffer, normally is 2 x chunkbytesize. unsigned int out_buff_data_remain_len_ans; // the length of the valid data that stored in out buffer. short *tmpBuf_ans; int tmpBufLen_ans; // for ans process // for ans lstm library void **ans_int_lstm; void **ans_state_lstm; }LstmAnsContext; LstmAnsContext* ConstructLstmAnsContext(); void DestructLstmAnsContext(LstmAnsContext *pCtx); int LstmAnsProcess(void *cookie, AUDIO_FRAME_S *pFrm, const AIO_ATTR_S *pAttr, BOOL bSuspendAns); #endif /* _LSTMANS_H_ */