Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

xiaozhi-android-client

MCP.Pizza Chef: TOM88812

xiaozhi-android-client is a Flutter-based cross-platform client supporting Android, iOS, Web, Windows, macOS, and Linux. It enables real-time voice and text interactions with AI models via WebSocket, integrating multiple AI services including xiaozhi-server, Dify, and OpenAI. The client supports voice echo cancellation and multi-agent chat, providing a seamless conversational AI experience across devices.

Use This MCP client To

Enable real-time voice conversations with AI on Android and iOS Support multi-platform AI chat with a single Flutter codebase Integrate multiple AI models for diverse conversational capabilities Deploy AI voice assistant apps on mobile and desktop platforms Use WebSocket for low-latency voice and text communication Add multiple AI agents to chat lists for varied interactions Implement voice echo cancellation for clearer audio Package and customize AI chat apps for web and PC

README

小智AI助手 Android IOS 客户端

Release License: Apache-2.0 Stars Download

目前已经发布新版本,敬请体验!flutter IOS与安卓回音消除已实现,欢迎大家PR。 觉得项目对您有用的,可以赞赏一下,您的每一次赞赏都是我前进的动力。 Dify支持发送图片交互。可以添加多个小智智能体到聊天列表。

一个基于WebSocket的Android语音对话应用,支持实时语音交互和文字对话。 基于Flutter框架开发的小智AI助手,支持多平台(iOS、Android、Web、Windows、macOS、Linux)部署,提供实时语音交互和文字对话功能。

新版
新版IOS、安卓端(可以自行打包WEB、PC版本)
观看demo视频点击跳转

近期出现不良社区风气,倒卖贩子泛滥,同时未对此开源项目做出署名,对开源社区造成严重影响,暂停开源推送。

近期服务器受到大量渗透攻击,暂停开放社区APK版本,有人不讲武德,那就只能这样了。

功能特点(部分功能未在社区版实现)

  • 跨平台支持:使用Flutter框架,一套代码支持多平台
  • 多AI模型支持
    • 集成小智AI服务
    • 支持Dify
    • 支持OpenAI-图文消息-流式输出
    • 支持官方小智-一键添加设备注册
  • 丰富的交互方式
    • 支持实时语音通话(持续对话)
    • 支持文字消息交互
    • 支持图片消息
    • 支持通话手动打断
    • 支持按住说话
    • 支持实时语音打断
    • 支持添加多个智能体
    • 支持独特的心情交互
    • 支持视觉
    • 支持live2d(口型同步)
  • 多样化界面
    • 深色/浅色主题适配
    • 轻度拟物化
    • 自适应UI布局
    • 精美动画效果
  • 系统功能
    • 多种AI服务配置管理
    • 自动重连机制
    • 语音/文字会话混合历史
    • 安卓 AEC+NS 回音消除
    • iOS 回音消除
    • 支持Qwen3模型开关思考模式
    • 支持HTML代码预览

安装与构建

  1. 克隆项目:
git clone https://github.com/TOM88812/xiaozhi-android-client.git
  1. 安装依赖:
flutter pub get
  1. 运行应用:
flutter run
  1. 构建发布版本:
# Android
flutter build apk --release

# iOS
flutter build ios --release

配置说明

小智服务配置

  • 支持配置多个小智服务地址
  • OTA URL设置
  • Token认证
  • 自定义MAC
  • wss地址自动获取

Dify API配置

  • 支持配置多个Dify服务
  • API密钥管理
  • 服务器URL配置

OpenAI 服务

  • 支持OpenAI接口
  • 支持自定义模型
  • 温度等配置

开发计划

  • 深色/浅色主题适配
  • 支持更多AI服务提供商
  • 增强语音识别准确性
  • 支持OTA自动注册设备
  • 支持语音实时打断
  • 支持Qwen3模型开关思考模式
  • 支持HTML代码预览
  • live2d 多模型自由切换
    • 内置两个live2d官方免费下载模型
    • live2d 自由导入
  • 支持iot功能
  • 支持视觉
  • 创新性心情模式
  • 集成MIot 控制米家设备
  • 支持TTS
  • 支持MCP_Client
  • 支持OpenAI接口联网搜索🔍

联系方式

全功能暂未在社区开放,全功能版目前仅对商业版提供。

  • email

lhht0606@163.com

  • wechat

Forever-Destin

服务端图形化部署工具

  • https://space.bilibili.com/298384872
  • https://znhblog.com/

🌟支持

您的每一个start⭐或赞赏💖,都是我们不断前进的动力🛸。

赞助

赞助榜

  • 上海沃欧文化传媒有限公司

Star History

Star History Chart

xiaozhi-android-client FAQ

How do I set up the xiaozhi-android-client for development?
Clone the repository, install Flutter, and run on supported platforms like Android or iOS; ensure WebSocket server access.
Can I add other AI models besides xiaozhi-server?
Yes, it supports integration with Dify, OpenAI, and other AI services for extended functionality.
Does the client support real-time voice interaction?
Yes, it supports real-time voice and text conversations using WebSocket communication.
Is the client limited to mobile platforms?
No, it supports multiple platforms including Web, Windows, macOS, and Linux via Flutter.
How is voice echo cancellation handled?
The client implements echo cancellation for iOS and Android to improve voice interaction quality.
Can I customize the UI or add features?
Yes, since it is open source and built with Flutter, you can customize UI and extend features.
What protocols does the client use for communication?
It uses WebSocket for low-latency, real-time voice and text data exchange.
Is there support for image-based interactions?
Yes, integration with Dify allows sending and receiving image interactions in chat.
How do I contribute to the project?
Contributions are welcome via pull requests on GitHub; check the repo for contribution guidelines.