SWRA769 august 2023 CC2564C
The following function is responsible for deactivating Voice Recognition Activation on the Audio Gateway and for change the Voice Recognition Activation state on the Hands-free Unit. This function returns zero on successful execution and a negative value on all errors.
The Voice Recognition command takes only one parameter, this value must be specified as 0 (for Deactivate) or 1 (to Activate).
"SetVoiceRecognitionActivation 0"
HFRE_Set_Remote_Voice_Recognition_Activation(BluetoothStackID, CurrentClientPortID, (Boolean_t)TempParam->Params->intParam)
BTPSAPI_DECLARATION int BTPSAPI HFRE_Set_Remote_Voice_Recognition_Activation(unsigned int BluetoothStackID, unsigned int HFREPortID, Boolean_tVoiceRecognitionActive)
This function is responsible for activation and deactivation of the Voice Recognition which resides on the Remote Audio Gateway when called by a hands-free unit. When called by an Audio Gateway this function is responsible for informing the remote hands-free unit of the current activation state of the local Voice Recognition function. This function can only be called by local devices that were opened with the supported feature bit set for Voice Recognition. This function accepts as its input parameters the Bluetooth Stack ID for which the HFRE Port ID is valid as well as the HFRE Port ID. The final parameter is a Boolean flag specifying if this is a call to Activate or Deactivate this function on a Remote Audio Gateway, or to specify that Voice Recoginition is locally Activated or Deactivated to a Remote Hands-Free unit. When active the Voice Recognition function on the Audio Gateway is turned on, when inactive the Voice Recognition function on the Audio Gateway is turned off. This function returns zero if successful or a negative return error code if there was an error.