💡Tips:This tutorial also applies to Ai-WV01-32S module
1. Modify AI Server Address
- Enter the SDK directory
- Open: xiaozhi_project_cfg.h

Change DEFAULT_WS_URL to the websocket address of your custom server, as shown below:

2. Modify Verification Code Request Address
Change WEB_SERVER to the domain name of your custom server, as shown below:

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

3. Modify OTA Upgrade Address
Change WEB_URL to the OTA link of your custom server, as shown below:

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 |
|---|---|
| GND | GND |
| TXD | RXD |
| RXD | TXD |
| 3V3 | Vo |
| BOOT | DTR |
| EN | RTS |

Flash successful

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;

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

