Skip to content
HardwareLab

ElatoAI

ElatoAI brings Realtime AI Speech powered by 100+ Voice AI models to the Arduino ESP32, with Secure WebSockets and Edge Functions for >20-minute uninterrupted conversations globally.

Hardware:
ESP32-S3, speaker
Difficulty:
Intermediate · Our suggestion
License:
MIT
Creator:
akdeb

Realtime voice AI with 100+ models on an ESP32

By akdeb

Demo by Akash Deb · Watch on YouTube

What it does

ElatoAI brings Realtime AI Speech powered by 100+ Voice AI models to the Arduino ESP32, with Secure WebSockets and Edge Functions for >20-minute uninterrupted conversations globally. You create AI agents in a Next.js web app and send them to your ESP32 device.

  • Realtime speech-to-speech 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.
  • Create custom agents with different personalities and voices.
  • Talk to your AI with WebRTC in the Next.js web app and with websockets on the ESP32.
  • Control the volume of the ESP32 speaker, and the pitch of the AI’s voice for cartoon-like voices, from the web app.
  • The ESP32 device does not require PSRAM to run the speech-to-speech AI.
  • Call tools and functions from the ESP32 device to the edge functions for a complete voice AI agent.

Like this build? Get the weekly builds

Every Thursday: the 5 best gadget hacks you can copy. Free.

Built something? Submit a build

What you need

Difficulty
Intermediate · Our suggestion
License
MIT (source)

Parts

  • ESP32-S3
  • Speaker
  • Button or touch sensor [optional]
AI model or service
OpenAI Realtime API, Gemini Live API, xAI Grok Voice Agent API, Eleven Labs Conversational AI Agents, Hume AI EVI-4, Boson Higgs Realtime (source)

Prices, notes and sources: Parts and requirements

Parts and requirements

As an Amazon Associate HardwareLab earns from qualifying purchases.

PartSpec / notesNeededPrice
ESP32-S3 IoT client in the tech stack tableRequiredView on Amazon
Speaker The web app controls the ESP32 speaker volumeRequiredView on Amazon
Button or touch sensor OptionalView on Amazon

Full build guide

Steps

Difficulty
Intermediate · Our suggestion
  1. Quick Start
  2. Build with PlatformIO
  3. Build on Arduino IDE
  4. Deploy globally

Full instructions: View original

How it works

ElatoAI has three main components: a Next.js frontend hosted on Vercel to create and talk to your AI agents and send them to your ESP32 device; edge server functions on Deno Edge or Cloudflare Workers that handle the websocket connections from the ESP32 and the LLM provider API calls; and the ESP32 client (PlatformIO/Arduino), which sends audio to the LLM provider through the edge server.

LayerComponentRuns on
FrontendNext.js Vercel
BackendSupabase DB Supabase
Edge FunctionsEdge server functions Deno Edge or Cloudflare Workers
IoT ClientPlatformIO, Arduino Framework ESP32-S3

Setup effort

Follow the Quick Start, then build with PlatformIO or the Arduino IDE.

Limits and caveats

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

Use-case ideas

  • Create a global network of devices and toys with Cloudflare Voice Agents and Durable Objects.

Why it's interesting

ElatoAI puts Realtime AI Speech powered by 100+ Voice AI models on an Arduino ESP32, using Secure WebSockets and Edge Functions for conversations of more than 20 minutes. Speech-to-speech runs through 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, and you can create custom agents with different personalities and voices. The ESP32 device does not require PSRAM to run the speech-to-speech AI, and audio streams with Opus compression over encrypted WebSockets. A Next.js web app lets you control the volume and the pitch of the AI’s voice, view your conversation history and factory reset the device, while the firmware gets over-the-air updates and Wi-Fi setup through a captive portal. The README lists its limits plainly: a 2-3 s cold start and no speech interruption detection on the ESP32.

Source: github.com/akdeb/ElatoAI#readme

Hardware

  • ESP32-S3
  • speaker

More ESP32 builds

Credits and links

This page is a short summary written by HardwareLab. Build steps, code and photos belong to the creator; follow “View original” for the full project.

Featured? Add this badge

Built this? Paste the badge into your README. It links back to this page.

Featured on HardwareLab

Markdown

[![Featured on HardwareLab](https://hardwarelab.dev/badge.svg)](https://hardwarelab.dev/projects/elato-ai/?utm_source=badge&utm_medium=referral&utm_campaign=launch_2w)

HTML

<a href="https://hardwarelab.dev/projects/elato-ai/?utm_source=badge&utm_medium=referral&utm_campaign=launch_2w"><img src="https://hardwarelab.dev/badge.svg" alt="Featured on HardwareLab" width="188" height="20"></a>

Sources

  1. github.com/akdeb/ElatoAI/blob/18d35fcf21d02109a48990e35eaaa694b3376cfb/README.md?plain=1#L87
  2. github.com/akdeb/ElatoAI/blob/18d35fcf21d02109a48990e35eaaa694b3376cfb/README.md?plain=1#L88
  3. github.com/akdeb/ElatoAI/blob/18d35fcf21d02109a48990e35eaaa694b3376cfb/README.md?plain=1#L98
  4. github.com/akdeb/ElatoAI/blob/18d35fcf21d02109a48990e35eaaa694b3376cfb/README.md?plain=1#L99-L107
  5. github.com/akdeb/ElatoAI/blob/18d35fcf21d02109a48990e35eaaa694b3376cfb/README.md?plain=1#L105
  6. github.com/akdeb/ElatoAI/blob/18d35fcf21d02109a48990e35eaaa694b3376cfb/README.md?plain=1#L108
  7. github.com/akdeb/ElatoAI/blob/18d35fcf21d02109a48990e35eaaa694b3376cfb/README.md?plain=1#L27
  8. github.com/akdeb/ElatoAI/blob/18d35fcf21d02109a48990e35eaaa694b3376cfb/README.md?plain=1#L128
  9. github.com/akdeb/ElatoAI/blob/18d35fcf21d02109a48990e35eaaa694b3376cfb/README.md?plain=1#L99
  10. github.com/akdeb/ElatoAI/blob/18d35fcf21d02109a48990e35eaaa694b3376cfb/README.md?plain=1#L104
  11. github.com/akdeb/ElatoAI/blob/18d35fcf21d02109a48990e35eaaa694b3376cfb/README.md?plain=1#L125
  12. github.com/akdeb/ElatoAI/blob/18d35fcf21d02109a48990e35eaaa694b3376cfb/README.md?plain=1#L126
  13. github.com/akdeb/ElatoAI/blob/18d35fcf21d02109a48990e35eaaa694b3376cfb/README.md?plain=1#L127
  14. github.com/akdeb/ElatoAI/blob/18d35fcf21d02109a48990e35eaaa694b3376cfb/README.md?plain=1#L35-L38
  15. github.com/akdeb/ElatoAI/blob/18d35fcf21d02109a48990e35eaaa694b3376cfb/README.md?plain=1#L194
  16. github.com/akdeb/ElatoAI/blob/18d35fcf21d02109a48990e35eaaa694b3376cfb/README.md?plain=1#L195-L196
  17. github.com/akdeb/ElatoAI/blob/18d35fcf21d02109a48990e35eaaa694b3376cfb/README.md?plain=1#L197