Felona Voice v0.2.0 is now live — Sub-10ms neural voice routing with deterministic state machines.Star on GitHub
FelonaVoicev0.2.0
GitHubStart Building↗
Back to all articles
September 27, 2026
•
7 min read
•Mohit / Felona Voice Core Team

Sub-10ms Voice AI: Felona Voice's JEV Beats LLM Latency for Real-time Interaction

Experience sub-10ms voice AI with Felona Voice. JEVs eliminate LLM latency, hallucinations, and high costs, enabling natural, real-time conversational agents in TypeScript.

#typescript#ai#voiceai#opensource

Ever talked to a voice agent that felt... sluggish? You ask a question, and there's that awkward, noticeable pause before it responds. This isn't just annoying; it breaks the natural flow of human conversation, making the interaction feel robotic and frustrating. The culprit? Often, it's the underlying architecture relying on raw Large Language Model (LLM) loops for every decision.

Traditional voice agents route user intent by sending transcribed speech to a cloud-based LLM. This involves network round-trips, LLM inference time (even for just classification), and token generation latency. Each conversational turn can easily clock in at 850ms to 1800ms or more. In the world of real-time voice, that's an eternity.

But what if you could achieve sub-10ms intent routing? What if your voice agent could react almost instantly, understand context without hallucinating, and cost significantly less? This is precisely the innovation Felona Voice brings to the open-source TypeScript ecosystem, powered by Joint Embedding Vectors (JEV) and stateful conversational transition graphs (VoiceGraph).

The Latency Trap of Raw LLM Loops

Let's break down why relying on raw LLM calls for every conversational turn is fundamentally ill-suited for low-latency voice applications:

  1. Network Overhead: Each interaction requires an API call to a remote LLM. Even with optimized networks, round-trip times to cloud providers introduce significant delays.
  2. Token Generation Latency: LLMs are designed to generate text, token by token. While streaming helps, the time to produce the first relevant token for intent classification is still substantial, typically hundreds of milliseconds.
  3. Computational Cost: Running complex LLMs for simple intent classification is computationally expensive, leading to higher API costs per turn.
  4. Hallucinations & Nondeterminism: LLMs are probabilistic. While powerful for generation, this means they can sometimes misinterpret intent or provide irrelevant information, leading to unpredictable agent behavior and the dreaded "hallucination" in decision-making.

These factors combine to create a conversational experience that feels stilted, prevents natural barge-in, and ultimately leads to user frustration. Building an agent that truly feels 'live' with these constraints is an uphill battle.

Felona Voice: Unleashing Sub-10ms Responsiveness with JEV

Felona Voice takes a radical, yet elegant, approach to intent routing by leveraging Joint Embedding Vectors (JEV). Instead of asking an LLM to reason about text and generate a response, Felona Voice uses JEVs to match user intent to predefined actions in milliseconds.

Here's the core idea:

  1. Action Descriptions as Embeddings: You define your agent's capabilities (actions) with clear, concise descriptions. Felona Voice converts these descriptions into numerical vector representations (embeddings) during initialization.
  2. User Utterance Embeddings: When a user speaks, their transcribed utterance is also converted into an embedding.
  3. Blazing-Fast Similarity Matching: Felona Voice then performs a highly efficient, local vector similarity comparison between the user's utterance embedding and all your predefined action embeddings. The action whose embedding is most similar to the user's intent is chosen.

This entire process—from user utterance embedding to action selection—happens in sub-10ms, typically around 5ms! There's no token generation, no expensive LLM reasoning for routing, and minimal network dependency for the decision-making itself. This deterministic, local matching is the secret to Felona Voice's unparalleled speed.

This JEV-powered routing is integrated with VoiceGraph, a stateful conversational transition system. VoiceGraph ensures that while JEVs provide instant intent recognition, your agent maintains context and follows a logical flow, adapting dynamically to user input without the rigidity of hardcoded static graphs.

Developer Experience: Fluent & Type-Safe TypeScript

Felona Voice is built for developers, offering a fluent, type-safe API in TypeScript. Defining your agent's actions and behaviors is intuitive and enjoyable:

import { createAgent } from "felona-voice";

const agent = createAgent("Concierge")
  .system("You are an intelligent voice concierge for a luxury hotel. You can book tables and assist with check-ins.")
  .action("book_table", "Book a restaurant reservation for a guest. This action handles requests like 'I want to reserve a table' or 'Can you book a spot at the restaurant?'.", async (ctx) => {
    // In a real application, you'd integrate with a booking system here.
    console.log("User wants to book a table. Context:", ctx.lastUtterance);
    return "Certainly, I've noted your request to book a table. What time and for how many people?";
  })
  .action("check_in", "Assist with guest check-in. This action is for phrases like 'I need to check in' or 'I have a reservation'.", async (ctx) => {
    console.log("User wants to check in. Context:", ctx.lastUtterance);
    return "Welcome! Do you have a reservation number, or should I look it up by name?";
  })
  .fallback("I'm sorry, I didn't quite catch that. Could you please rephrase or tell me how I can assist you today?");

// Simulate interactions
(async () => {
  console.log("--- Testing 'book_table' ---");
  let reply = await agent.interact("I'd like to book a table for dinner.");
  console.log("Agent:", reply);

  console.log("\n--- Testing 'check_in' ---");
  reply = await agent.interact("Hi, I need to check in.");
  console.log("Agent:", reply);

  console.log("\n--- Testing 'fallback' ---");
  reply = await agent.interact("Tell me a joke.");
  console.log("Agent:", reply);
})();

This simple, expressive API allows you to define complex conversational flows with minimal boilerplate, all while benefiting from TypeScript's robust type checking.

The Stark Reality: LLM Loops vs. Felona Voice (JEV + VoiceGraph)

The difference in performance, cost, and reliability is dramatic:

Metric Traditional Voice Agent (LLM Loop) Felona Voice (JEV + VoiceGraph)
Intent Decision Latency 850ms – 1,800ms ~5ms (Sub-10ms)
Inference Cost / Turn $0.02 – $0.06+ / turn $0.00 / turn
Hallucination Risk High (probabilistic text tokens) 0% (deterministic transition graph)
Network Dependency Requires constant cloud LLM API Local/In-memory embedding matching
Barge-in Support Challenging due to latency Instant and seamless
Deterministic Routing Low (depends on prompt engineering) High (vector similarity)

Unpacking the Cost Savings: Why $0.00/turn is a Game Changer

When scaling voice agents, the cost of LLM inference per turn quickly becomes prohibitive. Consider a scenario with 1,000 calls per day, averaging 10 conversational turns per call. That's 10,000 turns daily.

  • Traditional LLM Loop: At an average of $0.03 per turn for LLM API calls, this amounts to $300 per day, or $9,000 per month just for intent routing. This doesn't even include ASR (speech-to-text) or TTS (text-to-speech) costs.
  • Felona Voice (JEV + VoiceGraph): For the core intent decision, the cost is effectively $0.00 per turn. The embeddings for your actions are generated once (a negligible cost), and user utterance embeddings can be generated locally or via an extremely cheap embedding API. The vector similarity comparison itself consumes minimal compute resources and incurs no API fees.

This translates to a 90-95% reduction in the operational cost associated with the decision-making component of your voice agent. When you consider the scale of enterprise voice applications, these savings are monumental, making advanced voice AI accessible and economically viable.

Beyond Speed: Natural Interactions and Reliability

Felona Voice's JEV-driven architecture offers benefits far beyond raw speed:

  • Natural Turn-Taking: Eliminating those awkward pauses means conversations flow more naturally, mimicking human interaction.
  • Instant Barge-in: Users can interrupt the agent at any moment, just as they would a human, without waiting for the agent to finish speaking. This drastically improves user experience.
  • Zero Hallucinations in Routing: Because JEVs perform deterministic matching rather than probabilistic generation for intent, your agent will never
Open Source Voice AI Framework

Build with Felona Voice Today

Cut speech turnaround latency from 1,200ms to sub-10ms. Eliminate hallucinations with deterministic JEV state machines and native audio streaming adapters.

Star on GitHubRead Docs