Show HN: Real-time AI (audio/video in, voice out) on an M3 Pro with Gemma E2B
TL;DR Highlight
Gemma 4 plus Kokoro gives about 0.7s to first audio on an M3 Pro, fully on-device.
Who Should Read
A backend or app developer who wants to build a real-time voice assistant that runs locally without cloud voice AI
Core Mechanics
- Full-duplex fine-tuning failed
- The author fine-tuned Gemma 4 12B toward a full-duplex model (listens and speaks at once) and it failed after multiple trials.
- The author thinks a classic cascade system is still better for now.
- Voice pipeline split into stages
- Browser Silero VAD detects end of speech after about 200ms of silence.
- smart-turn-v3 (about 20ms) judges whether you finished, and Gemma 4 hears and sees while streaming the reply.
- Kokoro TTS speaks it sentence by sentence.
- Actions are decoupled from speech
- Timers, mode switches and research are decided in a separate grammar-forced JSON request.
- Recall was 1.0 versus 0.955 for in-band tags (benchmarks/archbench.py).
- Transcript first improves accuracy
- The reply begins with a transcript of what was heard.
- The README says committing to it first measurably improves accuracy.
- Prefill while the user is still talking
- The camera frame and speech are pushed through llama.cpp's prompt cache mid-utterance.
- Even long questions start answering almost instantly.
- Measured latency on M3 Pro (e2b)
- A short question (~2s speech) gets first audio at ~0.7s and completes at ~1.3s.
- A long question (~9s speech) gets first audio at 1.3-1.4s and completes at 2.1-2.3s.
- Default E4B is about 1.8x e2b latency with better answers, and ~200ms VAD silence is added on top.
Community Reactions
- Doesn't load offline, one user reports
- A commenter said running without internet leaves localhost stuck on "loading...".
- Once started online it kept working after disconnecting, and it was fast on an M4 Pro 48GB.
- Slow live speech recognition with E2B reported
- One commenter couldn't get live recognition fast enough with Gemma E2B on an M1 Max, a 5060 Ti or a Snapdragon 8 Gen2.
- Another said Gemma 4 is heavy even as E2B and sticks with qwen 0.8B.
- E2B text part can be fine-tuned, per a comment
- A commenter fine-tuned it to talk like a pirate.
- They noted it wouldn't carry over to the TTS part.
- Strong demand for hands-free assistants
- Commenters want a workshop assistant for timers and notes while wearing gloves, and a driving assistant.
How to Apply
- Run Parlor locally and measure latency
- Within 30 minutes, install llama.cpp and uv via brew and launch with uv run parlor.
- Switch to MODEL=e2b and compare the feel against default e4b.
- Separate control commands from spoken text
- If tool or timer tags leak into TTS in your voice agent, move them to a separate JSON call.
- Request JSON only, using the same context after the reply.
- Split end-of-turn detection into two stages
- Put a classifier like smart-turn-v3 after silence-based VAD to filter mid-thought pauses.
- Send the reply to TTS sentence by sentence to cut perceived latency.
- Compare before and after with bench.py
- Save a bench.py result JSON before and after each change.
- Use compare.py to diff the two files and see latency impact.
Try It
# Terminal on macOS (Apple Silicon): run Parlor locally
git clone https://github.com/fikrikarim/parlor.git
cd parlor
curl -LsSf https://astral.sh/uv/install.sh | sh
brew install llama.cpp
uv sync
MODEL=e2b uv run parlor
# then open http://localhost:8000 and allow mic and cameraTerminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques