抱歉打扰了,请问APP打开双向对讲功能,向设备下发的音频数据可以做修改吗,我们这边想调整下发给设备的参数格式为PCM,采样率为16K,请问该怎么做修改变动呢?
【已解决】【IPC SDK 5.x】音频对讲问题
-
- Posts: 33
Re: 【求助】【IPC SDK 5.x】音频对讲问题
请修改P2P初始化参数:
typedef struct
{
TRANSFER_ONLINE_CB online_cb; /* callback function when P2P status changes /
TRANSFER_REV_AUDIO_CB on_rev_audio_cb; / audio receiving (APP->IPC) callback function /
TUYA_CODEC_ID rev_audio_codec; / supported audio codec type for data APP->IPC /
TUYA_AUDIO_SAMPLE_E audio_sample;/ supported audio sampling for data APP->IPC /
TUYA_AUDIO_DATABITS_E audio_databits;/ supported audio databits for data APP->IPC /
TUYA_AUDIO_CHANNEL_E audio_channel;/ supported audio channel type for data APP->IPC /
TRANSFER_EVENT_CB on_event_cb; / p2p event callback function /
TRANS_LIVE_QUALITY_E live_quality;
INT_T max_client_num;
IPC_MEDIA_INFO_S AVInfo;
TRANS_DEFAULT_QUALITY_E defLiveMode; / for multi-streaming ipc, the default quality for live preview */
BOOL_T lowpower;
VOID *p_reserved;
}TUYA_IPC_TRANSFER_VAR_S;
-
- Posts: 33
Re: 【求助】【IPC SDK 5.x】音频对讲问题
好的,感谢!