Description
xiaogpt is an open source project that connects a Xiaomi AI Speaker to ChatGPT and other large language models, so you can talk to the speaker and hear the model's answers. Once it runs, you address the speaker with a wake phrase, and questions that start with help me are sent to the model, with the reply read aloud by the speaker's text-to-speech. The project supports ChatGPT through the OpenAI API, New Bing, ChatGLM, Gemini, Doubao, Moonshot, Llama 3 and Qwen, and it can use LangChain to search the web or do calculations. It can switch between speech engines, including Edge, Fish Audio, OpenAI and Azure text-to-speech. Setup involves installing the MiService package, setting your Xiaomi account and finding the device ID of your speaker with a command, and then running the program with the hardware model of your speaker. The README includes setup steps for Linux, Windows command prompt and PowerShell, and notes on tokens and login verification codes. It also describes a way to change the wake word, and continuous conversation mode with spoken start and end phrases. The code is on GitHub under an open source licence.…
Highlights
- Ask ChatGPT and other models through a Xiaomi speaker
- Supports OpenAI, Gemini, Qwen and more
- Several text-to-speech engines
- Continuous conversation mode
- Works with LangChain for web search
Ratings & Reviews
No ratings yet
Be the first to rate Xiaogpt.
People also visit
ChatGPT-OpenAI-Smart-Speaker
This AI Smart Speaker uses speech recognition, TTS (text-to-speech), and STT
Xiaogpt FAQ
What does xiaogpt do?
It connects a Xiaomi AI Speaker to ChatGPT and other language models, so the speaker can answer questions with the model's replies.
Which models are supported?
The README lists ChatGPT, New Bing, ChatGLM, Gemini, Doubao, Moonshot, Llama 3 and Qwen.
What do I need?
A Xiaomi AI Speaker, your Xiaomi account, an API key for the model you choose, and a Python environment. The README has setup steps.
Can I change the voice?
Yes. The project supports Edge, Fish Audio, OpenAI and Azure text-to-speech.
Does it need a login code?
The README says the first login or an expired token can need an SMS or email verification code entered in a terminal.
Is it free?
The project is open source and on GitHub. Any model or speech service you use may have its own charges.
What are the best Xiaogpt alternatives?
Popular alternatives to Xiaogpt include ChatGPT-OpenAI-Smart-Speaker, Streamcore Server and SwitchAI. See all Xiaogpt alternatives


