Doorgaan naar hoofdcontent

Audio Jarvis: a JARVIS for our lab

If you have seen Iron Man (2008), you know the scene: Tony Stark stands in his workshop and talks to JARVIS as if it were a colleague. What always struck me is not the voice and not the holograms. It is how little Tony has to explain. A reference to a part from an earlier project is enough, and JARVIS knows what he means.

In our lab at Fontys ICT we want to find out what it takes to get there. That project is called Audio Jarvis.

What it is: a voice terminal with a serious backend

The part you can see is small: a Louder-ESP32, an audio board with a classic ESP32-WROVER and a TAS5805M amplifier driving two speakers. Add a microphone, four buttons (Talk, Yes/Select, No and Escape) and a small OLED screen.

The thinking happens elsewhere:

  • A Linux PC in the lab coordinates the conversation. Whisper turns speech into text, Piper turns the answer back into speech.
  • A GPU PC with two RTX 4090s runs a local language model through Ollama, for example Mistral.
  • Optionally, the coordinator can also use a cloud model (OpenAI, Claude, Grok or Gemini) or a cloud voice such as ElevenLabs. That replaces only that one step.
Route of a spoken question
One conversational turn: on the default route everything stays in our own lab. The cloud is an option, not a requirement.

Follow one question from microphone to speaker: your voice goes to the Linux PC, Whisper turns it into text, the local model comes up with an answer, Piper turns that into speech again, and the ESP32 plays it. On that default route, nothing leaves our own lab. I care about that. An assistant standing next to your workbench hears a lot, and not all of it needs to go to a data centre.

The ESP32 side is deliberately dumb and dependable: recording, playback, muting and the buttons. Which model or provider sits behind it is a setting on Linux, not a firmware update.

An ordinary day in the lab

This is how we picture it. You walk through the lab with the microphone, hold down the talk button and ask: "Where are the scope probes?" The assistant checks the inventory: "Cabinet 1, drawer B. According to the records there are four."

At the cabinet you press again: "There were only two."

This is where it gets interesting. Does that mean two were borrowed, or that the records were already wrong? "There were two" is not the same as "book two out". A good assistant asks before it changes anything in the stock. And if the Wi-Fi dropped just then, the same correction must not be applied a second time blindly.

Small situations like these are the difference between a nice demo and something you actually want to use every day.

Why it is fun: real design choices

A few choices I really like:

  • Push-to-talk, no wake word. The microphone only records while you hold the button. No background recording, not even "just half a second before". A follow-up question also starts with the button.
  • A screen for things that should not be said out loud. A password for a lab system should not come out of a speaker. That is what the display is for.
  • Confirm with a button, not with your voice. Speech recognition can hear "no" as "yes". So a question like "Delete all voicemails?" is confirmed on the display, with Yes, No or Escape. An irreversible action needs a physical action.
  • Guardrails in code, not in the prompt. For the structure of the assistant we look at Harness² from Google Research: describe the assistant as separate parts (prompt, guardrails, memory, tools), each with an owner. The guardrails, such as that confirmation rule, are fixed in code. The language model cannot change them itself.
  • Choosing without a screen. If the default assistant disappears, the board reads out the services that are still available, for example "assistant group 2", "intercom" or "music". You decide where your voice goes.

Why it matters: context and initiative

The real research question is not in the hardware. It is in why JARVIS feels so pleasant to work with. A few examples we want to explore:

  • Referring to earlier work: "Use the material from the outer shell in project X." The assistant then has to find the right part and the right revision, and show the source.
  • Fitting someone's way of working: without a one-off choice quietly turning into a permanent rule.
  • Taking initiative at the right moment: there are a thousand unread voice messages. Do you say so right away, or wait until someone has finished what they are doing?
  • Understanding a short follow-up: after the suggestion about those messages, the user says "delete them". Which messages exactly? A message that just came in is not automatically one of them.

These are questions about people as much as about technology. That is why I think this is such a good project for students: you learn embedded audio, networking and language models, but above all you learn to think about what an assistant may and may not do on its own.

The way of working is teaching material too

The project is an example I built for ICT students, and here too I work with AI agents. What I want to show along the way:

  • The project memory lives in the repository. The current status is in status.md, and every agreed decision gets a number in a decision log. That way every student and every agent sees the same thing, and it is all under version control.
  • Every fact gets a provenance label: [confirmed] with source and date, [verify] or [assumption]. That sounds strict, but it stops an assumption from quietly being treated as fact three sessions later.
  • Small steps with acceptance criteria up front. First agree on when a test counts as passed, then build.

Where are we now?

To be honest: we are at the very beginning. The first system test is done. The ESP32 boots, the 8 MB of flash is configured correctly and the 8 MB of PSRAM is detected and tested. Audio, the LED and the exact identification of the board have not been validated yet.

The next step is to document the board properly (photos, revision, microphone positions and power supply), find the matching schematic, and then build the first audio test. Only when that works does the assistant itself come in.

You do not build a JARVIS in a weekend. But every step is a small, verifiable win, and that is exactly how I want students to learn to build.

Want to follow along or help build it? The repository is here: chat-l18l/ESP32_audio_Jarvis.

This article is part of the series Building with AI agents: projects I build together with AI agents. That link takes you to every part of the series, including new ones.

Lees dit artikel in het Nederlands: Audio Jarvis: een JARVIS voor ons lab

Reacties

Populaire posts van deze blog

Denon DHT T100 DESIGNED TO FAIL : bad caps (ceramic caps this time)

A friend gave me a Denon DHT-T100 to look at. Do not spend much time on it.. ok. It had a problem, it started clicking and ticking after power on, and after some time. (a so called intermittent problem) Sometimes it did not tick or click, but it was basically not usable. The clicking had a sharp click in one channel and repeated after about a second, then sound recovered and it would click and drop out again. He told me, do not spend any time on it, yeah, right. ;-) like I would give up after 15 minutes. I wanted to know what was going on with this thing, I found some schematic online and started measuring the usual things. The power supply, 24V did it drop down when a tick occurred ? Difficult to find out because sometimes the thing would play for hours without a glitch. I eventually found out the 24 V PSU, the step down SMPS on board and the LDO's were all ok, all power rails remained within spec, but it still glitched sometimes. (while power was ok) I inves...

Fixed voltage on cheap buck converter (MP1584) conversion with single 0805 resistor

Everywhere I look on the Ali and Ebays I see these step down converters based on MP1584. I bought a couple and actually they are not bad at all. The output voltage is set by the trimming-resistor in the left top corner of the picture. This works OK, but.. it is dangerous because it is rather sensitive to the touch. I decided that I wanted fixed output, so I had to figure out how this thing worked. The datasheet looks like this : R1 in the datasheet is what I call "R feedback" in my image. The value of R2 is mostly 8.2K Ohm in the boards I have seen.  So to set some common values for output voltage: change R1 to 27K for 3V3 output (actually 3.4 volt, but 27K is a standard value) or change R1 to 43K0 for 5.0 Volt output. (43 K is a standard value) A standard 0805 size resistor fits precisely, how convenient ;-). Make sure the other resistor is really 8.2K because that determines the feedback ratio. This way you can not burn up your circ...

Raspberry Pi, PyFace Digital, the lost documentation, I found it finally

The Raspberry PI or R-pi from  http://www.raspberrypi.org/  is well known these days. It is not an accident that I have one, I have been doing Linux stuff since 1991, and professionally since 1996 I can not skip over these developments, have to keep up with the new kids. :-) Times have changed, hardware has become very affordable, everybody knows the Arduino , Raspberry Pi and Beagle-Bone-Black (BBB). Not everybody knows the stuff that  http://www.acmesystems.it/  aka Acme-Systems and  https://github.com/OLIMEX/OLINUXINO  aka  Olimex make, so I will endorse them here. Since I am an engineer I expect to connect switches and relays to the boards and some documentation with products, not so with the " PiFace Digital " board, it comes without serious documentation, not a even the schematic. All links on their blog point nowhere. People asked them many times, yet nowhere is the schematic to be found. I finally found some info after hours of googl...