美文网首页
POC OEM接口

POC OEM接口

作者: LittleFat | 来源:发表于2017-07-11 16:20 被阅读36次

1 录音接口

int OEM_StartRecord();
int OEM_StopRecord();
void OEM_Record(const char* data, int lenght); //POC库中实现底层来定时调用,来返回PCM的录音数据,录音数据要求8K,16bit,单声道

2 播放接口

int OEM_StartPlay();
int OEM_StopPlay();
int OEM_Play(const char* data, int lenght);
int OEM_OutSpace(); //获取底层队列还可以写入多少数据
int OEM_OutNeedDataNotify(int dataLength); //POC来实现,当底层播放队列中的数据小于1个值的时候(比如2帧)进行调用,每播一帧调用一次

3 播放提示音

int OEM_PlayTone(int type); //TODO

4 TTS接口

int OEM_TTS_Spk(char *aTxt); //TODO
int OEM_TTS_Stop();
int OEM_TTS_Status();
void OEM_TTS_Spk_end(); //通知TTS播放结束

5 电话接口

int OEM_Call_State(void);
void OEM_Call_StateChangeNotify(void);

6 串口和AT

int OEM_SendUart(char *buf, int len);
void OEM_POC_AT_Recv(char *buf, int len); //通知收到的AT+POC=的指令

7 网络接口

void OEMSocket_NetOpen(void);
int OEMSocket_GetNetStatus(void);

相关文章

网友评论

      本文标题:POC OEM接口

      本文链接:https://www.haomeiwen.com/subject/hujmhxtx.html