Xiaogpt
Xiaogpt is an open-source Python tool designed to enable voice interaction with ChatGPT and multiple other large language models (LLMs) through Xiaomi AI Speakers. It supports integration with nine different AI models, including ChatGPT, New Bing, ChatGLM, Gemini, and Llama3, among others. The tool can be configured via command-line parameters, environment variables, or YAML files, and it supports deployment on both X86 and ARM architectures using Docker. Xiaogpt handles authentication for Xiaomi accounts and various LLM APIs, routing voice queries from the speaker to the selected AI models and playing back responses through the speaker hardware. The project is hosted on GitHub under the MIT License and has an active development history with over 500 commits and more than 1,600 stars. It requires users to provide their own API keys for the supported LLMs and a Xiaomi account for device integration. The setup involves configuring network parameters such as host IP and port mapping to enable communication between the Xiaomi AI Speaker and the Xiaogpt service. The tool targets developers and Xiaomi AI Speaker owners who want to add voice-based AI chat capabilities to their existing hardware.
Xiaogpt enables voice interaction with multiple large language models through Xiaomi AI Speakers using an open-source Python tool.
Voice Interaction with LLMs on Xiaomi AI Speakers
Users can ask questions or issue commands to ChatGPT and other supported LLMs via Xiaomi AI Speakers and receive spoken responses.
Developer Customization
Developers can customize the tool's configuration to integrate different AI models and deploy Xiaogpt on various hardware platforms using Docker.
git clone https://github.com/yihong0618/xiaogpt to download the source code.docker run -e OPENAI_API_KEY= -e XIAOGPT_HOSTNAME= yihong0618/xiaogpt --account= --password= --hardware= ensuring port 9527 is mapped.xiaogpt CLI script to verify functionality.