Overseas access: www.kdjingpai.com
Bookmark Us
Current Position:fig. beginning " AI Answers

How can developers do secondary development based on the Xiaozhi client? What are the key modules included in the project architecture?

2025-08-22 532
Link directMobile View
qrcode

Secondary Development Guidelines and Architecture Explanation

The project is designed using a layered architecture:

  • exhibition layer: Cross-platform UI implemented by Flutter (lib/ui/)
  • business logic layer::
    • Voice processing (lib/services/audio_service.dart)
    • Network communication (lib/api/websocket_client.dart)
    • Device control (lib/features/miot/)
  • data layer: Hive Local Database + SharedPreferences Configuration Storage

Extended Development Recommendations:

  1. Adding a new model requires inheritance from the BaseAIService abstract class.
  2. Custom themes should modify the color constants under lib/themes/
  3. Use riverpod for state management to avoid direct setState
  4. Calling platform-specific native APIs via platform_channel

Recommended

Can't find AI tools? Try here!

Just type in the keyword Accessibility Bing SearchYou can quickly find all the AI tools on this site.

Top

en_USEnglish