daacoo  by yuanzhongqiao

Real-time voice AI for ultra-low-cost edge devices

Created 1 year ago
450 stars

Top 66.1% on SourcePulse

GitHubView on GitHub
Project Summary

DaaCoo AI integrates advanced, cloud-grade voice AI with ultra-low-cost microcontrollers like the ESP32, offering a complete, real-time solution for interactive devices. It supports over 100+ voice models globally with sub-second latency, targeting developers building AI toys, voice-controlled hardware, smart home devices, and edge AI projects. This platform provides a remarkably low-barrier, feature-rich solution for edge voice AI.

How It Works

The project employs a three-layer architecture: a Next.js frontend for agent configuration, Deno Edge/Cloudflare Workers for WebSocket bridging and AI orchestration, and an ESP32-S3 for audio I/O. The ESP32 records audio, encodes it via Opus at 12kbps, transmits it over WebSocket, and plays responses. This design leverages edge functions for global low-latency processing and optimizes the ESP32 to run without external PSRAM, reducing hardware costs and enabling extended conversations.

Quick Start & Requirements

  • Primary Install/Run: Build using PlatformIO or Arduino IDE.
  • Prerequisites: ESP32-S3 microcontroller (approx. $3-5 hardware cost), WiFi connectivity.
  • Dependencies: Next.js (Frontend), Deno Edge / Cloudflare Workers (Edge), PlatformIO/Arduino IDE (Device).
  • Links: DaaCoo AI Products page.

Highlighted Details

  • No PSRAM Required: Optimized ESP32 implementation eliminates external PSRAM, drastically reducing hardware costs.
  • 100+ Model Support: Flexibility to switch between cloud AI providers like OpenAI, Gemini, Grok, ElevenLabs, and Hume.
  • Opus @ 12kbps: High-quality audio transmission at extremely low bandwidth, suitable for global IoT deployments.
  • 20 Min Uninterrupted Chat: Achieved via persistent WebSockets and edge functions for extended conversations.
  • Global Edge Deployment: Utilizes Deno Edge/Cloudflare Workers for low-latency, globally distributed processing.
  • Product-Ready: Includes OTA updates, captive portal WiFi setup, factory reset, and user authentication.

Maintenance & Community

The provided README does not detail notable contributors, sponsorships, community channels, or a roadmap.

Licensing & Compatibility

  • License Type: MIT License.
  • Compatibility: The MIT license permits commercial use and integration into closed-source projects.

Limitations & Caveats

Voice interruption is not yet supported on the ESP32. Edge functions have timeouts, potentially dropping connections. A 3-4 second cold start delay occurs on initial connection. The primary implementation is cloud LLM dependent, lacking offline capability by default, though local MLX options are mentioned.

Health Check
Last Commit

4 weeks ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
447 stars in the last 30 days

Explore Similar Projects

Starred by Andrej Karpathy Andrej Karpathy(Founder of Eureka Labs; Formerly at Tesla, OpenAI; Author of CS 231n), Jeff Hammerbacher Jeff Hammerbacher(Cofounder of Cloudera), and
1 more.

moonshine by moonshine-ai

0.5%
9k
Speech-to-text models optimized for fast, accurate ASR on edge devices
Created 1 year ago
Updated 1 day ago
Feedback? Help us improve.