From: hcj <1224667075@qq.com> Date: Mon, 20 Oct 2025 04:23:32 +0000 (+0800) Subject: 修改音频接口设置(补 X-Git-Tag: V1.0.9_20251128_194606_LN~200 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=fce58487d140ebb83b831becde399fe9be3e7e3a;p=mirrors%2FFD230.git 修改音频接口设置(补 --- diff --git a/code/sdk/zhihui/ai_old/chat_websocket_server.cpp b/code/sdk/zhihui/ai_old/chat_websocket_server.cpp index 0071fc176..c7fc98b2b 100644 --- a/code/sdk/zhihui/ai_old/chat_websocket_server.cpp +++ b/code/sdk/zhihui/ai_old/chat_websocket_server.cpp @@ -48,7 +48,7 @@ static int chat_cached_capacity = 0; // 当前分配的内存容量 /* 外部函数声明 */ extern bool read_dev_token(char *data_token); -extern bool get_dev_id(char *device_id); +extern bool get_cmai_dev_id(char *device_id); // extern void uapi_cat1_keep_wakeup(uint8_t state); // Commented out due to missing implementation /** @@ -225,7 +225,7 @@ bool chat_ws_url_init(char * put_buf, uint8_t type) if(read_dev_token(token)) { char device_id[128] = {0}; - get_dev_id(device_id); + get_cmai_dev_id(device_id); char * product_id = "1927646275585744898"; sprintf(put_buf, "ws://amp.raisound.com/chat/ws?device_id=%s&product_id=%s&dt=%s&platform=aliyun&noCache=1", @@ -236,7 +236,7 @@ bool chat_ws_url_init(char * put_buf, uint8_t type) { char * Service_url = "118.145.158.207:22080"; char device_id[128] = {0}; - get_dev_id(device_id); + get_cmai_dev_id(device_id); char * product_id = "1927646275585744898"; if(type_ai == AI_TYPE_JIU)