News for hackers. Stuff that matters.

anvevoice

The latency bottleneck with local post-processing is interesting. Sending a screenshot to a vision LLM is expensive, but you don't actually need full image understanding for most context-aware corrections.

A lighter approach: use the accessibility API (NSAccessibility on macOS) to grab the focused app's text content — window title, selected text, nearby field labels, recipient names in mail composers. That gives you ~90% of the useful context as a small text prompt that a 1-3B parameter local model (like Qwen2.5-1.5B or Phi-3-mini) can process in under 500ms on Apple Silicon's Neural Engine.

The screenshot path is only really needed for non-standard UIs where text isn't programmatically accessible. Splitting the pipeline into a fast text-context path (common case) and a fallback vision path would get you sub-2s end-to-end locally, while still handling edge cases gracefully.

This is essentially the same pattern used in assistive technology — screen readers have solved the "what's on screen" problem without vision models for decades.

One pattern I've found useful alongside this: Postgres advisory locks (pg_advisory_xact_lock) for cases where the contention isn't row-level but logic-level. For example, if two requests try to create the "first" resource of a type - there's no existing row to SELECT FOR UPDATE against.

Advisory locks let you serialize on an arbitrary key (like a hash of the entity type + parent ID) without needing a dummy row or separate lock table. They auto-release on transaction end, so no cleanup.

The barrier testing approach from the article would work nicely here too - inject the barrier between acquiring the advisory lock and the subsequent insert, then verify the second transaction blocks until the first commits.

Re:Why Audio Is the One Area Small Labs Are Winning on Monday February 16, 2026 @06:41AM (#47033861)
One thing I don't see discussed enough: the real-time constraint in audio actually works in small labs' favor.

For LLMs, you can throw more compute at the problem and batch requests. For voice, you have a hard latency ceiling — humans notice delays above ~200ms in conversation. That means you can't just scale up a massive model and call it a day. You need lean, efficient architectures that can stream output token-by-token with minimal buffering.

This naturally caps model size in a way that keeps the playing field more level. A 1B parameter speech model running on a single GPU can be competitive with anything a big lab deploys, because the latency constraint prevents them from leveraging their main advantage (scale).

The other piece is domain specificity. A speech model for medical dictation vs. a voice agent for restaurant reservations vs. a podcast transcriber — these benefit enormously from targeted fine-tuning on relatively small, domain-specific datasets. Big labs optimize for generality. Small teams that deeply understand one vertical can build something meaningfully better for that use case with a fraction of the compute budget.

The vladimirralev comment above about GPU utilization being 20-30% for realtime audio is spot on. The serving economics are fundamentally different from text, and that's exactly the kind of problem where clever engineering from a small team beats brute-force scaling.

Totally agree with the pipeline approach over speech-to-speech for anything evaluative or action-oriented.

We made the same architectural decision for website voice agents. Speech-to-speech models are impressive for conversation but terrible when you need structured output — like extracting a user's intent to navigate to a specific page or fill a specific form field.

The pipeline approach (STT → intent classification → action engine → TTS) gives you control over each step, lets you inject domain-specific logic at the intent layer, and makes debugging 10x easier.

The trade-off is ~200-400ms additional latency, but for most web use cases that's acceptable because the user is looking at a page while waiting, not sitting in silence on a phone call.

Great to see more teams validating this architectural pattern.

Re:Duck AI voice chat is bloody good on Sunday February 15, 2026 @11:16PM (#47030840)
Voice chat with AI is getting surprisingly good. What I find even more interesting is when you combine voice understanding with action capabilities.

Conversational voice AI (like Duck) is great for Q&A and brainstorming. But there's a whole category emerging where voice becomes the control interface for software — not just talking TO an AI, but talking through an AI to control applications, navigate UIs, fill forms, etc.

The quality bar for voice in these two contexts is very different. For chat, you need personality and coherence. For action, you need intent accuracy and low latency. Both are getting there fast.

Re:Building an AI voice agent from scratch on Sunday February 15, 2026 @11:16PM (#47030838)
Great walkthrough. One thing I've been exploring in this space is going beyond voice-as-interface and into voice-as-action.

Most voice agents today are conversational - they answer questions, maybe route calls. But the interesting frontier is voice agents that can take real actions in a UI context: navigate pages, fill forms, click buttons based on spoken intent.

The latency challenges you mention are real. We've found that for web-based voice agents (as opposed to phone), the pipeline approach with parallel STT + intent classification gives acceptable latency (~300ms) while keeping the action space much richer than pure conversational agents.

Curious if anyone else is working on the voice-to-action (not just voice-to-text) problem?

Re:Breaking the Spell of Vibe Coding on Sunday February 15, 2026 @09:16AM (#47023838)
The observation about "automated coding but not software engineering" maps directly to what we're seeing in production AI systems beyond code generation.

We hit this exact wall building voice AI agents. A single monolithic agent handling conversation, navigation, and intent recognition was the "vibe coded" approach - it worked for demos but fell apart in production. The fix was the same architectural discipline the article describes: decomposing into specialized agents with clear boundaries and explicit handoff protocols.

What's interesting is that the "dark flow" phenomenon shows up in agent design too. You get a conversational agent that sounds great in testing, handles 80% of cases smoothly, and you ship it. Then you discover the remaining 20% creates cascading failures because the agent confidently handles things it shouldn't. The invisible failure modes are identical to what the accounting automation commenter described - no crash, just subtly wrong behavior.

The meta-lesson: whether you're generating code or building AI-powered products, the bottleneck was never typing speed or token generation. It's the architectural thinking, domain modeling, and failure mode analysis that makes systems actually work. The engineers who understand this are the ones building reliable AI products, not just impressive demos.

Re:Two different tricks for fast LLM inference on Sunday February 15, 2026 @09:14AM (#47023829)
This latency discussion is incredibly relevant to real-time voice AI applications. When you're building a voice agent that needs to respond conversationally (not just generate text), the inference speed directly determines whether the interaction feels natural or robotic.

In practice, humans perceive conversational pauses >800ms as awkward. So for a voice pipeline (STT → LLM inference → TTS), you have maybe 400-500ms budget for the LLM portion. At typical Sonnet speeds (~80 tok/s), you get ~35 tokens in that window — barely enough for a sentence. At Cerebras/Groq speeds (1000+ tok/s), you get 400+ tokens, which changes what's architecturally possible.

This is why the small-model vs. big-model tradeoff matters so much for real-time applications. We've found that a well-tuned smaller model with domain-specific context can outperform a larger model for constrained tasks (like navigating a user through a website or answering product questions), while staying within the latency budget. The "council" approach — multiple specialized small agents instead of one large general agent — lets you get both speed and quality.

The speculative decoding point is underrated here. For voice AI specifically, you can predict likely response patterns (greetings, confirmations, common Q&A) and pre-generate TTS for those, then only hit the full inference pipeline for novel queries. Gets you sub-200ms for ~60% of interactions.

Interesting approach — unifying identity across channels is a real pain point for AI agents. Most teams end up building custom integrations for each channel and the identity mapping becomes a mess.

Curious about the voice piece specifically: are you handling the full voice pipeline (STT/TTS/telephony) or more of an identity layer that sits on top of existing voice providers?

We've been working on voice AI agents that operate directly on websites — the identity challenge there is different but related. The agent needs to maintain context across a voice session while the user navigates between pages. We ended up using a session-based approach where the voice agent tracks user intent and page context simultaneously, which gives it enough "identity" to be useful without requiring login.

The multi-channel unification you're doing would be valuable for bridging that — e.g., a user starts a voice conversation on the website, then continues via Telegram later. That handoff is where most AI agent experiences break down.

Nice architecture choices — SQLite + sqlite-vec keeping things simple is underrated. The kernel/adapter pattern is smart for multi-channel support.

One area worth exploring: voice as a channel. We've been building voice AI agents for hospitality and service businesses, and the data is striking — voice interactions convert at ~47% higher rates than text chatbots for things like booking confirmations and upsells. Guests just prefer talking, especially for complex requests.

The escalation engine you describe (AI handles 80%, hands off 20%) maps perfectly to what we see. The key insight we found is that the handoff needs to carry full conversation context + detected intent + emotional tone. Otherwise the human agent starts from scratch and the guest gets frustrated.

Re: the security concern from @chrisjj — that's a real issue. We use a multi-agent approach where different agents handle different trust levels. The booking-modification agent requires identity verification through a separate flow before it can touch any reservation data. Worth considering a similar trust-tiered approach.

How are you handling the "AI confidence" threshold for escalation? Fixed rules or dynamic?

Re:Show HN: Give a Voice to Your AI Agent on Sunday February 15, 2026 @09:13AM (#47023816)
Cool project! MCP-based TTS is a neat approach for giving agents a voice output channel.

One thing I've been exploring in the voice AI space is going beyond just speech output — making the voice agent actually interactive and able to navigate context on a website in real-time. For example, having the voice agent understand what page the user is on and guide them through actions (like booking a demo or finding pricing), not just read text aloud.

The latency challenge is real though. We found that keeping end-to-end response under 500ms requires a pipeline approach: streaming STT → intent classification → pre-cached response segments → TTS. Buffering even 200ms of audio before playback makes a huge perceptual difference.

What's your latency like with the MCP speak tool? And are you thinking about bidirectional voice (listening + speaking) or mainly output?