Skip to content

💡Tips:This tutorial also applies to Ai-WV01-32S module

1. Modify AI Server Address ​

  • Enter the SDK directory
  • Open: xiaozhi_project_cfg.h
text
Change DEFAULT_WS_URL to the websocket address of your custom server, as shown below:

alt text

2. Modify Verification Code Request Address ​

Change WEB_SERVER to the domain name of your custom server, as shown below:

alt text

Change WEB_PORT to the port number of your custom server, as shown below:

alt text

3. Modify OTA Upgrade Address ​

Change WEB_URL to the OTA link of your custom server, as shown below:

alt text

4. Compile Firmware ​

Use make flash to compile and flash the firmware (connect the module to the virtual machine via serial port after wiring as shown in the table below)

AiPi-PalChatV1​TTL to USB Module​
GNDGND
TXDRXD
RXDTXD
3V3Vo
BOOTDTR
ENRTS
Anxinke IOT WeChat Mini Program QR Code
Flash successful

alt text

5. Add Activation Code ​

  • After flashing successfully, follow the steps in sections 1 and 2 of Quick Start to complete the network configuration;
  • On first use, after connecting to the network, the device will repeatedly broadcast the verification code. Be sure to record the code for device addition;
  • Add the device verification code broadcasted by the device to the agent set in the backend of your custom server;

alt text

  • After adding, use the wake word to wake up the device, and you can start a conversation.

Released under the MIT License. Build Time 2026-09-30 17:31:25