Xiaozhi AI Application Tutorial

From Waveshare Wiki
Jump to: navigation, search
The following is an example of ESP32-S3-Touch-AMOLED-1.8. If you use other development boards, the steps are similar.

Flow Chart

XiaozhiAI-09.png

Flashing Without a Development Environment

XiaozhiAI-01.png

Compile and Flash in ESP-IDF Environment

XiaozhiAI-10.png

  • Click the link to refer to the ESP-IDF environment setup tutorial: ESP-IDF Environment Setup
  • Compile and flash after selecting the device (1.85 touch and non-touch select the same model)

XiaozhiAI-08.png

Start Networking

  • Use a mobile phone or computer to connect to the device's WiFi network: Xiaozhi-xxxxxx. After the connection is successful, it will automatically jump to the device's network configuration page. If the network configuration page does not automatically redirect, you need to manually open the browser and visit http://192.168.4.1.

XiaozhiAI-02.png

  • On the network configuration page, select the WiFi name (only 2.4G is supported, the maximum compatibility option should be turned on for iPhone hotspot). The SSID will be automatically filled in, enter the password below, then click the "Connect" button.
  • After the connection is successful, it will automatically restart. If it does not restart automatically, the device needs to be manually powered on again.

XiaozhiAI-03.png

Add New Device to Management Backend

  • Make sure the device is connected to the Internet and can be woken up by "Hello, XiaoZhi", and a prompt asking to add a device 6-digit device verification code appears (you can wake up again and listen again).
  • Click the link to visit XiaoZhi AI Chatbot - Console: https://xiaozhi.me/. If you have not registered, register an account first. Note: You can select English under Language option. If it is not provided in English, we suggest you use AI tools to browse the pages.

XiaozhiAI-04.pngXiaozhiAI-05.pngXiaozhiAI-06.png

  • The device will be automatically activated and displayed on the "Device Management" page, and it will be ready for normal use.
  • The buttons used for ESP32-S3-Touch-AMOLED-1.8 are as follows: ①: Boot button controls whether to wake up XiaoZhi; ②: PWR button controls device power on/off, short press to turn on, long press for more than six seconds to turn off.

XiaozhiAI-07.png

More Learning Links for XiaoZhi

FAQ

 Answer:

Almost all ESP32 products can be connected to the AI model, but it depends on how to use it. If the product has a microphone and speaker, it supports voice conversations. If not, you can only have text conversations (some can also be connected to an external microphone and speaker).




 Answer:

If you have enabled the OTA update in XiaoZhi console, it will be automatically upgraded, and there is no need to reflash the firmware



 Answer:

If you have enabled the OTA update in XiaoZhi console, it will be automatically upgraded, and there is no need to reflash the firmware


 Answer:

No, it needs to be connected to the Internet


 Answer:

Currently it does not have the ability to recognize hardware



 Answer:

No, the demo we provide is independent from XiaoZhi and does not support simultaneous use


 Answer:

Yes, as long as it is a 2.4G hotspot