Skip to content
This SDK only works with devices released within the past 3 years. We regularly optimize and update the SDK to ensure compatibility and performance. We do not guarantee compatibility or provide technical support for devices older than 3 years.

# TALK_DATA_CALLBACK

### Callback Definition

    1
    void TALK_DATA_CALLBACK(POINTERHANDLE lVoiceComHandle, char* pRecvDataBuffer, DWORD dwBufSize, BYTE byAudioFlag, void* pUser);

### Function Description

Data callback during voice intercom.

### Parameter Description

Parameters | Type | Remark
--- | --- | ---
pRecvDataBufferin | char* | Receive intercom data buffer pointer. The received intercom data is PCM data before encoding.
dwBufSizein | DWORD | Buffer size.
byAudioFlagin | BYTE | Audio tag, the value can only be 1, indicating the intercom data sent from the device.
pUserin | void* | User-defined parameters are passed in when setting the callback function.

### Return Value

None

### Remarks

None

Error Code