ag_voice.c
来自「bluetooth audio gateway」· C语言 代码 · 共 23 行
C
23 行
#include "ag_private.h"
#include "ag.h"
/*
agVoiceRecognitionEnable
A voice recognition enable/ disable command has been received at the AG
so pass it on.
*/
void agVoiceRecognitionEnable(uint16 en)
{
AGState.hfVoiceRecogEnable = en;
if (AGState.hfVoiceRecogEnable && !agScoConnectedQuery())
{
/* If voice recognition has been enabled open a SCO (unless one is up already) */
agCreateSco(AGState.remote_addr, 0x80);
}
handleVoiceRecognitionInd(agGetConnectionHandle(&AGState.remote_addr), AGState.hfVoiceRecogEnable);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?