修改音频接口设置(补 2565/1 2565/head 2566/target/1
authorhcj <1224667075@qq.com>
Mon, 20 Oct 2025 04:23:32 +0000 (12:23 +0800)
committerhcj <1224667075@qq.com>
Mon, 20 Oct 2025 04:23:32 +0000 (12:23 +0800)
code/sdk/zhihui/ai_old/chat_websocket_server.cpp

index 0071fc1..c7fc98b 100644 (file)
@@ -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)