Welcome to the Xiaozhi-ESP32 repository! Here, you can build your own AI friend using the ESP32 microcontroller. This project combines the power of chatbots and large language models (LLMs) to create a friendly and interactive companion.
In today's world, AI technology is becoming more accessible. With the Xiaozhi-ESP32, you can create a personalized chatbot that can engage in conversations, answer questions, and provide companionship. The ESP32 is a powerful microcontroller with Wi-Fi and Bluetooth capabilities, making it perfect for IoT projects.
- Chatbot Functionality: Engage in natural conversations.
- ESP32 Integration: Use the ESP32's capabilities for connectivity.
- Large Language Model Support: Leverage advanced AI models for intelligent responses.
- Customizable: Tailor the AI friend to your preferences.
To get started with your AI friend, follow these steps:
-
Prerequisites: Make sure you have the following:
- An ESP32 development board.
- A computer with the Arduino IDE installed.
- Basic knowledge of programming.
-
Clone the Repository:
git clone https://github.com/Mo7d748/xiaozhi-esp32.git
-
Navigate to the Project Directory:
cd xiaozhi-esp32
-
Download the Latest Release: Visit the Releases section to download the necessary files. You will need to download and execute the files from the release.
If you haven't installed the Arduino IDE, download it from the official Arduino website.
- Open the Arduino IDE.
- Go to File > Preferences.
- In the "Additional Board Manager URLs" field, add:
https://dl.espressif.com/dl/package_esp32_index.json
- Go to Tools > Board > Boards Manager.
- Search for "ESP32" and install the latest version.
You will need several libraries for this project. Open the Library Manager in the Arduino IDE:
- Go to Sketch > Include Library > Manage Libraries.
- Search for and install the following libraries:
WiFi
HTTPClient
ArduinoJson
- Any additional libraries mentioned in the documentation.
- Open the main code file in the Arduino IDE.
- Connect your ESP32 to your computer.
- Select the correct board and port under the Tools menu.
- Click the upload button.
Once the code is uploaded, your ESP32 will start running the chatbot. Follow these steps to interact with your AI friend:
- Connect to Wi-Fi: Ensure your ESP32 is connected to the internet.
- Open the Serial Monitor: In the Arduino IDE, go to Tools > Serial Monitor.
- Start Chatting: Type your messages and see how your AI friend responds.
We welcome contributions to enhance this project. If you want to help, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push your changes to your forked repository.
- Submit a pull request.
Please ensure your code follows the project's coding standards and includes relevant documentation.
This project is licensed under the MIT License. See the LICENSE file for details.
- Thanks to the ESP32 community for their support and resources.
- Special thanks to the developers of the libraries used in this project.
For more information, check the Releases section to download the necessary files.
Happy coding!