ElatoAI

akdeb活跃维护

在 Arduino ESP32 硬件上跑实时语音 AI,通过安全 WebSocket 和边缘函数接入 100+ 模型,做 AI 陪伴设备。

Realtime Voice AI with 100+ Models on Arduino ESP32 with Secure Websockets and Edge Functions for AI Companions, and Devices

暂无版本2,113star +4 / 7 天262fork同步于 2026-11-10 11:45 UTC

怎么上手

由 README 提炼,执行前请确认
参考官方文档 https://www.elatoai.com/docs/quickstart 按 PlatformIO 或 Arduino IDE 方式构建 ESP32 固件
硬件要求按 README 说明

ESP32-S3,README 明确说明无需 PSRAM 即可运行语音对话;未提及 GPU 或显存要求。

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

在 ESP32 上跑实时语音 AI,用安全 WebSocket 和边缘函数接入 100+ 语音模型

在 Arduino ESP32 硬件上跑实时语音 AI,通过安全 WebSocket 和边缘函数接入 100+ 模型,做 AI 陪伴设备。

核心能力

  • 通过安全 WebSocket 连接 Deno Edge 或 Cloudflare Workers 边缘服务
  • 接入 OpenAI Realtime、Gemini Live、Grok、ElevenLabs、Hume 等语音模型
  • 用 Opus 编解码以 12kbps 传输 48KHz 音频
  • 支持服务端 VAD 轮次检测与工具调用
  • 提供 OTA 升级、captive portal 配网和网页端音量/音调控制

容易踩的坑

需要自行准备各模型厂商(OpenAI、Gemini 等)的 API Key;连接边缘服务器有 2-3 秒冷启动;ESP32 端不支持语音打断检测,且边缘服务器在墙钟时间超限后会停止

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

0 个版本

暂无 release 数据(可能没有发版,或尚未同步)。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    English | 中文

    News

    • Apr 17 2026: Create a Global Devices/Toys network with Cloudflare Voice Agents and Durable Objects. Cloudflare's Workers AI provides Deepgram STT/TTS natively so all you need to bring is an LLM API Key to create a scalable, low-latency voice AI pipeline.
    • Apr 15 2026: You can launch over 100+ STT, LLM, TTS voice pipeline systems with a FastAPI server with Pipecat!
    • Mar 14 2026: Elato just launched Local AI Toys on Pi Day.🎉🎉 Your ESP32 devices can now support local AI models and voice generation with frontier Local LLMs and TTS models like Qwen, Mistral, and more with MLX. Check it out here.

    👾 ElatoAI: Realtime Voice AI Models on Arduino ESP32

    Realtime AI Speech powered by 100+ Voice AI models on ESP32, with Secure WebSockets & Edge Functions for >20-minute uninterrupted conversations globally.

    📽️ Demo Video

    Video links: OpenAI Demo | Gemini Demo | Eleven Labs Demo | Hume AI EVI-4 Demo

    🧠 Models

    Deno Edge

    1. OpenAI Realtime API
    2. Gemini Live API
    3. xAI Grok Voice Agent API
    4. Eleven Labs Conversational AI Agents
    5. Hume AI EVI-4
    6. Boson Higgs Realtime
    7. More speech to speech models coming soon!

    Cloudflare Workers

    1. LLM - 80+ Models OpenAI, Gemini, xAI, and more.
    2. TTS - 10+ Models Deepgram, MeloTTS and more.
    3. STT - 5 Models Whisper, Deepgram and more.

    FastAPI

    Select from 100+ models from the list above and use the FastAPI server to create your own voice pipeline. Check out the FastAPI server for more details.

    👷‍♀️ DIY Hardware Design

    📱 App Design

    Control your ESP32 AI device from your phone with the ElatoAI webapp.

    🌟 Full feature list

    1. Realtime Speech-to-Speech: Instant speech conversion powered by OpenAI's Realtime API, Gemini's Live API, xAI's Grok Voice Agent API, Eleven Labs Conversational AI Agents, Hume AI EVI4, and Boson Higgs Realtime.
    2. Create Custom AI Agents: Create custom agents with different personalities and voices.
    3. Customizable Voices: Choose from a variety of voices and personalities.
    4. Secure WebSockets: Reliable, encrypted WebSocket communication.
    5. Server VAD Turn Detection: Intelligent conversation flow handling for smooth interactions.
    6. Opus Audio Compression: High-quality audio streaming with minimal bandwidth.
    7. Global Edge Performance: Low latency Deno Edge Functions ensuring seamless global conversations.
    8. ESP32 Arduino Framework: Optimized and easy-to-use hardware integration.
    9. Conversation History: View your conversation history.
    10. Device Management and Authentication: Register and manage your devices.
    11. User Authentication: Secure user authentication and authorization.
    12. Conversations with WebRTC and Websockets: Talk to your AI with WebRTC on the NextJS webapp and with websockets on the ESP32.
    13. Volume Control: Control the volume of the ESP32 speaker from the NextJS webapp.
    14. Realtime Transcripts: The realtime transcripts of your conversations are stored in the Supabase DB.
    15. OTA Updates: Over the Air Updates for the ESP32 firmware.
    16. Wifi Management with captive portal: Connect to your Wifi network or Hotspot from the ESP32 device.
    17. Factory Reset: Factory reset the ESP32 device from the NextJS webapp.
    18. Button and Touch Support: Use the button OR touch sensor to control the ESP32 device.
    19. No PSRAM Required: The ESP32 device does not require PSRAM to run the speech to speech AI.
    20. OAuth for Web client: OAuth for your users to manage their AI characters and devices.
    21. Pitch Factor: Control the pitch of the AI's voice from the NextJS webapp to create cartoon-like voices.
    22. Tool calling: Call tools and functions from the ESP32 device to the edge Functions for a complete voice AI agent.
    23. Tap to turn on: Tap the touchpad to turn it on from sleep.
    24. Deploy on Cloudflare: Connect to any LLM, TTS, STT service with Cloudflare Voice Agents and Durable Objects

    Project Architecture

    ElatoAI consists of three main components:

    1. Frontend Client (Next.js hosted on Vercel) - to create and talk to your AI agents and 'send' it to your ESP32 device
    2. Edge Server Functions (Deno Edge or Cloudflare Workers) - to handle the websocket connections from the ESP32 device and the LLM Provider API calls
    3. ESP32 IoT Client (PlatformIO/Arduino) - to receive the websocket connections from the Edge Server Functions and send audio to the LLM Provider via the Deno edge server or Cloudflare Durable Objects.

    🛠 Tech Stack

    ComponentTechnology Used
    FrontendNext.js, Vercel
    BackendSupabase DB
    Edge FunctionsDeno Edge or Cloudflare Workers
    IoT ClientPlatformIO, Arduino Framework, ESP32-S3
    Audio CodecOpus
    CommunicationSecure WebSockets
    LibrariesArduinoJson, WebSockets, AsyncWebServer, ESP32_Button, Arduino Audio Tools, ArduinoLibOpus

    High-Level Flowchart

    flowchart TD
      subgraph UserLayer
        UserInput[User Speech Input]
        UserOutput[AI Generated Speech Output]
      end
      
      UserInput --> ESP32
      ESP32[ESP32 Device] -->|WebSocket| Edge[Deno Edge / Cloudflare Workers]
      Edge -->|OpenAI API| OpenAI[OpenAI Realtime API]
      Edge -->|Gemini API| Gemini[Gemini Live API]
      Edge -->|xAI API| xAI[xAI Grok Voice Agent API]
      Edge -->|ElevenLabs API| ElevenLabs[ElevenLabs AI Agents]
      Edge -->|Hume API| Hume[Hume AI EVI4]
      Edge -->|Boson API| Boson[Boson Higgs Realtime]
      OpenAI --> Edge
      Gemini --> Edge
      xAI --> Edge
      ElevenLabs --> Edge
      Hume --> Edge
      Boson --> Edge
      Edge -->|WebSocket| ESP32
      ESP32 --> UserOutput
    

    Project Structure

    graph TD
      repo[ElatoAI]
      repo --> frontend[Frontend Vercel NextJS]
      repo --> server[Deno Edge Function / Cloudflare Workers]
      repo --> esp32[ESP32 Arduino Client]
      server --> supabase[Supabase DB]
    
      frontend --> supabase
      esp32 --> websockets[Secure WebSockets]
      esp32 --> opus[Opus Codec]
      esp32 --> audio_tools[arduino-audio-tools]
      esp32 --> libopus[arduino-libopus]
      esp32 --> ESPAsyncWebServer[ESPAsyncWebServer]
    

    📊 Important Stats

    • Latency: <2-3s round-trip globally
    • Audio Quality: Opus codec at 12kbps (high clarity) 48KHz sampling rate!
    • Uninterrupted Conversations: Up to 20 minutes continuous conversations globally
    • Global Availability: Optimized with edge / monolith servers

    🛡 Security

    • Secure WebSockets (WSS) for encrypted data transfers
    • Optional: API Key encryption with 256-bit AES (decrypted on server)
    • Supabase DB for secure authentication
    • Postgres RLS for all tables

    🚫 Limitations

    • 2-3s cold start time while connecting to edge server
    • Tested with up to 17 minutes of uninterrupted conversations
    • Edge server stops when wall clock time is exceeded
    • No speech interruption detection on ESP32

    🙌 Contributing

    We value your contributions! Here are some ideas to get you started:

    1. Speech Interruption on ESP32 (works with OpenAI)
    2. Adding Arduino IDE support
    3. Add Hume API client for emotion detection
    4. Add MCP support on Deno Edge
    5. Plug in Eleven Labs API for voice generation
    6. Add Azure OpenAI Support (easy pickens) - in review
    7. Add Cartesia Support
    8. Add Amazon Nova Support
    9. Add Deepgram
    10. Add Cloudflare Workers support

    License

    This project is licensed under the MIT License - see the LICENSE file for details.

    Check out our hardware offerings at ElatoAI Products. If you find this project interesting or useful, support us by starring this project on GitHub. ⭐