esp32.diy

bot-reborn: Build a Voice-AI ESP32-S3 Robot From Scratch

Nov 29, 2026 · 8 min read

Intermediate 71 stars 1 forks JavaScript MIT Updated 2026-11-28

The reflex server log: after a 3.6 s first call that loads the model, each request answers in 203–220 ms.

TL;DR bot-reborn is a local Node brain plus a browser workbench that turns an ESP32-S3 into a robot with a voice and a character. You configure the AI layers in an admin page, wire and test everything in a simulator first, then flash the board over USB with no ESP-IDF install.
What you need
  • ESP32-S3 dev board
  • INMP441 I2S microphone
  • MAX98357A I2S amplifier
  • Speaker
  • Small SPI screen
  • MPU-6050 (optional, I2C)
  • Toy car (optional, for the toy-on-wheels body)
BoardESP32-S3
BrainNode server on your computer
LanguageJavaScript
LicenseMIT
DifficultyIntermediate

What you will build and why it is useful

bot-reborn is a workbench for voice-AI robots. The intelligence lives in a small Node server on your computer — the brain — and the robot is just a body that hears, speaks and moves. You configure a character (its persona, its providers, its body) in a local admin page, and the same brain can drive more than one robot.

Three gadgets have already been built on the platform:

There is also a route that needs no parts at all. The wiring simulator runs in your browser at /sim/ on the brain's own machine, so your first hour of building costs nothing — a mistake burns a virtual part, not a real one. That makes this a good project if you want to learn how a voice assistant is actually assembled before you spend money on a microphone and an amp.

An ESP32-S3 on a breadboard with a mic, an amp and a speaker, talking back.\2
An ESP32-S3 on a breadboard with a mic, an amp and a speaker, talking back.
The admin page: a character's basic settings and the QR code a phone scans to become its body.\2
The admin page: a character's basic settings and the QR code a phone scans to become its body.
The wiring simulator: press Demo and an ESP32 gets a mic, a speaker and a screen.\2
The wiring simulator: press Demo and an ESP32 gets a mic, a speaker and a screen.

What you need

Hardware for the real body (all named in the README):

Pin tables live in firmware/README.md under the wiring section — check them there rather than guessing, since the firmware only implements the original body.

Software:

You do not need ESP-IDF. The README is explicit that the board setup writes the firmware, the Wi-Fi credentials and the character's token for you. Note that macOS is what the project has been walked through on; Windows is untested.

Typical use cases

Desk companion

An ESP32-S3 with a mic, amp, speaker and a small screen for a face that answers you out loud.

Voice-driven toy car

Set the toy-on-wheels body, wire four motor inputs on GPIO 4–7, and steer with spoken commands.

Wiring practice with no parts

Use the browser simulator to build the audio circuit hole by hole before spending a cent.

Custom characters and bodies

Edit actions as JSON or drop in a body plugin to give the same brain a new set of verbs.

How it works: one brain, four layers

The brain is split into four layers, each with its own provider and key:

Reflex is the interesting one. It sees each line before the chat model and picks a single action — stop, forward, backward, left, right, keep_going — or pass, which hands the turn to the chat model. It answers with a probability rather than text, which is why it can be fast: no voice in the reply, only the action. The example model is a 0.8B model that answers about 200 ms after the transcript on a Mac mini M4, and scores 86.6% on its test set (142 of 164). A move only fires above 0.8 confidence, so anything uncertain falls through to the slower chat model — getting a reflex wrong is worse than getting it late.

Keys stay on the computer in a file under ~/.bot-reborn/ that only your user can read, and are sent only to the providers you chose. The robot never sees them: it holds a token that says which character it is.

A body is a template, not firmware and not the character. There are five in core/bodies.js: voice only, a pet on a screen, a tarot reader, a toy on wheels, and a dry run kept out of the picker.

Build and flash: start with no parts

  1. Start the brain on a computer on the same Wi-Fi as the body.
npm install
npm run setup   # the wake-word and VAD models, a Node check, one build
npm start

npm run setup tells you what is missing and how to fix it. The admin page opens in your browser: create a character, then fill Ears, Mind and Voice with a provider and key each.

  1. Open the workbench at http://localhost:8787/sim/, or use the link in the admin sidebar. It only opens on the computer the brain runs on.

  2. No keys yet? Open Projects, pick Audio only, then Shopping list. That is what to buy, with the spec to check on each listing and a rough price. Press Demo to watch it go together in about forty seconds, or Build it for me to leave the same bench standing and wire it up by hand.

  3. With keys? Do the same with Audio only, then accept the token the status line offers. The console types it and reboots the board; once it says welcomed as …, speak one sentence and listen for the answer.

  4. Real hardware. Open the admin page, plug the board into the port marked USB, and click Set up a board. Choose First time and it writes the firmware, the Wi-Fi and the character's token. The board finds the brain on its own.

One setting to change straight away: turn Barge-in off for this character. The body has no echo cancellation, so it would hear itself and interrupt itself.

Choosing a body and calibrating wheels

The admin's Body tab draws one card per template, showing the capabilities it has — hear, speak, show, move — the parts each body costs, and the actions the model may call.

Template Capabilities Actions the model may call
Voice only hear, speak play_sound
Pet on a screen hear, speak, show pose, play_sound
Tarot reader hear, speak, show draw_card
Toy on wheels hear, speak, move move, cruise, stop, play_sound
Dry run hear, speak, move the toy's four, logged only

A character with no body chosen is voice only. A body's actions are yours to edit — the Body tab holds them as JSON, and once you write your own the body keeps them instead of following the template. Nothing is compiled or flashed for that: an action is a program of the five verbs the hardware already answers (drive, halt, voice, pose, draw).

For the car, open the character's Body tab, set Toy on wheels, wire the four motor inputs (GPIO 4–7), and calibrate: cal drive if it goes backwards, cal steer if it turns the wrong way. The board stops the car within a second of losing the brain. Without wheels, open the admin with ?bench, go to the Body tab and set Dry run — the moves only reach the brain's log.

There is also a module system: installing a module from Body → Modules gives the model example actions that tell it when to use the module. Plug in USB to pair, say "turn on the light", and the bench LED lights. Only the LED module ships today, and installing again rewrites the commands, so a connected body must pair again afterwards.

Ideas to extend it, and honest limitations

Extend it:

Limitations to know before you buy anything:

Verdict

bot-reborn is unusual in a good way: it treats the AI as a configurable brain and the robot as a swappable body, and it lets you rehearse the whole build in a browser first. The firmware is narrower than the simulator, so read the device table before ordering parts. If you want a talking ESP32-S3 with a real persona and local key storage, this is a well-documented path.

Sources

github.combeasaltfish/bot-reborn — repository & README bot-reborn.agentlenshq.comOfficial website

Facts in this article come from the project's public README and GitHub metadata at the time of writing. Images belong to their respective owners and link back to the original source.