[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-116172":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":21,"topics":23,"createdAt":10,"pushedAt":32,"updatedAt":33,"readmeContent":34,"aiSummary":35,"trendingCount":15,"starSnapshotCount":15,"syncStatus":36,"lastSyncTime":37,"discoverSource":38},116172,"Jev-Interaction","native-bond-lab\u002FJev-Interaction","native-bond-lab","System-One-controlled full-duplex voice interaction: turn-taking as plain-language decisions judged by Jev.","https:\u002F\u002Fpupunpu-jev-interaction.hf.space\u002F",null,"Python",130,6,1,0,25,61,92,88.43,"Apache License 2.0",false,"main",[24,25,26,27,28,29,30,31],"conversational-ai","full-duplex","jev","llm","speech","turn-taking","voice-agent","voice-ai","2026-11-23 08:27:41","2026-11-23 19:54:55","\u003Cdiv align=\"center\">\n\n# Jev-Interaction\n\n**System-One-controlled full-duplex voice interaction.**\u003Cbr>Turn-taking as decisions you write — not a model you train.\n\n[中文](README.zh-CN.md) · [Cookbook](cookbook) · [Profiles](jev_interaction\u002Fprofiles) · [Decisions](jev_interaction\u002Fjudge\u002Fquestions.py)\n\n🏆 **Build of the Week** at [TypeSafe](https:\u002F\u002Ftypesafe.ai) · 🤗 **Live demo** on [Hugging Face](https:\u002F\u002Fhuggingface.co\u002Fspaces\u002Fpupunpu\u002FJev-Interaction)\n\n[![Build of the Week](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F%F0%9F%8F%86%20Build%20of%20the%20Week-TypeSafe-f5b301)](https:\u002F\u002Ftypesafe.ai) [![Hugging Face Space](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F%F0%9F%A4%97%20Hugging%20Face-live%20demo-ffcc4d)](https:\u002F\u002Fhuggingface.co\u002Fspaces\u002Fpupunpu\u002FJev-Interaction)\n[![PyPI](https:\u002F\u002Fimg.shields.io\u002Fpypi\u002Fv\u002Fjev-interaction)](https:\u002F\u002Fpypi.org\u002Fproject\u002Fjev-interaction\u002F) [![tests](https:\u002F\u002Fgithub.com\u002Fnative-bond-lab\u002FJev-Interaction\u002Factions\u002Fworkflows\u002Ftests.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fnative-bond-lab\u002FJev-Interaction\u002Factions\u002Fworkflows\u002Ftests.yml) ![python](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fpython-3.10%2B-3776ab) ![license](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-Apache--2.0-blue) ![status](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fstatus-alpha-f59e0b) ![judge](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fjudge-Jev-0f766e) ![duplex](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Ffull--duplex-voice-6366f1)\n\u003Cbr>\n\n*Most of a conversation happens in the gaps: who waits, who yields, who answers with nothing but an \"mm-hm\".\u003Cbr>We wrote every gap down as a question, and gave the questions to Jev.* Try it here: [Try it now](https:\u002F\u002Fpupunpu-jev-interaction.hf.space\u002F) (or [on Hugging Face](https:\u002F\u002Fhuggingface.co\u002Fspaces\u002Fpupunpu\u002FJev-Interaction)).\n\n\n\u003C\u002Fdiv>\n\n\u003Cimg src=\"docs\u002Fcover.png\" alt=\"Jev-Interaction — full-duplex voice, turn-taking you control\" width=\"100%\">\n\n> **Built on [Jev](https:\u002F\u002Ftypesafe.ai).** Every turn-taking decision here is a question Jev answers in tens of\n> milliseconds. Without it, none of this would work.\n\n> **From an applied lab.** Native Bond Lab is the applied research lab behind a consumer voice product. Everything in\n> this repository comes out of that product and runs at scale on real calls with real users, not in a demo.\n\n![Jev-Interaction architecture](docs\u002Farchitecture.svg)\n\n**Full duplex from a cascade.** Speech recognition → Jev's decisions → any language model → any speech synthesis. The\nagent listens while it talks, says \"mm-hm\" while you talk, lets a pause stand, carries on through a backchannel, yields\nor finishes its sentence when you cut in, and picks the call back up after a silence.\n\n**A System One for conversation.** People on a call run two minds at once: a fast one that knows, without thinking,\nwhen to wait, when to yield and when to say \"mm-hm\", and a slow one that works out what to say. Here Jev is the fast\nmind, deciding each moment in tens of milliseconds; the language model is the slow one, writing the words. Neither\nwaits for the other.\n\nVoice agents today take one of two roads. **Cascades** bolt a small trained model onto that pipeline to guess *\"has\nthe user finished?\"* and leave everything else to timers. **End-to-end full-duplex models** (Moshi, GPT-4o Realtime,\nGemini Live) learn turn-taking inside one large speech model: fast and natural, but a black box. You cannot see why it\nstopped, cannot change how it takes turns for a product or a persona, and are tied to the vendor's model, voices and\nsession limits.\n\n**Jev-Interaction keeps the cascade's freedom and gives it the judgement.** Every one of those moments becomes an\nexplicit decision: a plain-language multiple-choice question, a probability from Jev for every choice, and a policy\nthat turns the probabilities into an action. Questions, policies and the agent's manner are text you can read, change\nand replay against real calls.\n\n**Demo video: on the way.**\n\n## The policy\n\n![The call policy: the ears give signals, everything goes on one timeline, who is making sound picks one of four moments, Jev answers small facts, thresholds pick one action, the language model writes the words](docs\u002Fpolicy.svg)\n\nJev-Interaction is an interaction engine, not a voice-activity detector. Jev never hears audio and never decides that\nsomeone is speaking; the ears do that (voice activity, the recognizer, a sound model, a voiceprint) and their output is\nonly signals. What the engine decides is what to do with the moment: answer, wait, slip in an \"mm-hm\", cut in, carry on\nover an interruption, pick a quiet up, hang up. Three principles shape it.\n\n1. **Two parties, four moments.** The agent and the user each make sound or not, which gives four moments: the user\n   has the turn, both are quiet, both are talking, the agent is talking. Each moment has its own set of actions, and\n   nothing else.\n2. **One timeline, one \"now\".** The call is one record that only grows: the words, the signals, every answer from Jev,\n   every action taken, each on the same clock (`Ledger`). Every judgement and the model that writes the lines read the\n   same present from it (`judge\u002Fstate.py`, `Now`); no decision keeps its own account of the call.\n3. **One action per moment, no case left out.** In any moment there is one set of choices that do not overlap, and\n   every situation belongs to exactly one of them. One answer from Jev, one thing done.\n\nWhat follows from them:\n\n- **Questions are small facts about the user and the call, one thing each:** \"have they finished?\", \"did they say\n  'one moment'?\", \"is this sparring or telling?\". Never \"what would the agent do?\". A fact is the same whoever the\n  agent is.\n- **Thresholds, not dice.** Nothing is drawn: the same moment goes the same way, and a recorded call can be worked\n  through again. The thresholds sit in one place (`Config`), to be tuned on data.\n- **The persona sets the thresholds and the timing, never the questions:** how readily its line stops, whether it cuts\n  in, how soon it picks a quiet up.\n- **Jev picks the moment, the language model picks the words.** No rule makes Jev's decision for it, and Jev never\n  writes a line.\n\n| moment | Jev is asked | one action |\n|---|---|---|\n| the user has the turn | have they finished · which pace (one yes\u002Fno fact per pace) · is something they asked for due · sparring or telling | take the turn (when the words and the sound agree) · cut in (in a pace that does) · slip in a sound · stay silent |\n| quiet | does the agent's last line leave them a move · did they say they need a moment · were goodbyes said · has the agent called out with no answer | let it be · pick the thread up · check on them · hang up (the facts and the clock decide) |\n| both talking | what their words over the line are: a reaction, a \"stop\", or something of their own | carry on · stop and listen · finish the sentence · take the floor back · react at once |\n| the agent is talking | nothing | nothing to decide |\n\nThe caller asking for someone else is one more fact in the first moment (`who`: stay, or put them on; experimental,\nfor personas that list a `cast`).\n\n**Paces** (normal, patient, narrate, eager) say who holds the floor. Their timing is blended by Jev's probabilities, so\na call that is \"60% normal, 40% patient\" waits in between.\n\n**The same engine, two personas.** Two personas from our product, a dominant and a submissive one, each with its own\nthresholds and timing (`turn_taking` in the persona's YAML: its line stops more or less readily, it always or never\ncuts in, it picks a quiet up sooner or later; every shipped persona has one, [cookbook](cookbook\u002Frole-policies.md#turn-taking)),\non the same written moments (`tools\u002Fpersona_bench.py`, 628 requests to Jev):\n\n- Everyday moments (132): they act alike where nothing calls for a difference: a silence 28 of 28 the same, both\n  talking 30 of 32. Cutting in differs where it should: in the six sparring moments the dominant one cuts in and the\n  submissive one lets them finish.\n- A scene of control (16 moments): they act differently in 6, each the way round one would expect. \"Make me.\" over an\n  order: the dominant one takes the floor back, the submissive one carries on; defiant rambling: one cuts in, the other\n  lets them finish. Where they should act alike, they do: a real \"stop, I'm not okay\" stops both, an upset user is let\n  finish by both, a quiet after an order is waited out by both.\n- The facts Jev gave about the user barely moved between the two (0.002 to 0.048 on average): the questions are the\n  same, only the thresholds differ.\n\n## What you get\n\n- **Every piece is yours to choose.** The intelligence (any language model), the voice (any synthesizer and voice),\n  the style, the task and the persona. The persona reaches the interaction itself, not only the words: an impatient\n  character cuts in and answers half-sentences, a gentle one says \"mm-hm\" often and waits you out, a tutor finishes the\n  explanation before yielding, a support agent stays brief and stops the moment you speak.\n- **The pace routes itself, turn by turn.** Each turn Jev also judges which pace the call is in: normal conversation,\n  listening (the caller is pouring something out: more listening sounds, longer waits, fewer interruptions), narrating\n  (the agent is telling a story: an \"mm-hm\" does not stop it) or eager (quick to take the floor). One call moves between\n  them on its own, from small talk into a game and back.\n- **A new task is a few knobs, zero-shot.** Nothing here is trained on any benchmark or on your data. A task profile is\n  a page of text; the pause problem in Full-Duplex-Bench was fixed with two knobs, and each trade-off is measured, not\n  guessed.\n- **Every number comes with a reason.** Each decision is logged with the state Jev read and the probabilities it gave,\n  so a bad moment points at the step that caused it, and a reworded question can be replayed against recorded calls\n  before it ships.\n- **Calls of any length.** No session is held open on a model provider; each decision and each reply is a fresh request\n  over a text history.\n- **Cheap.** A decision is a few hundred tokens to Jev; in our runs a reply cost about $0.002 of language model and a\n  400-sample benchmark round about $2.\n\n## Benchmarks at a glance\n\nZero-shot: nothing here was trained on any benchmark. Four public benchmarks, 16 metrics, against end-to-end duplex\nsystems (GPT-Realtime, Gemini Live, GPT-4o, Moshi, Nova Sonic, Freeze-Omni) and trained turn detectors. With the knobs\ntested below, Jev-Interaction is first on 3 metrics and in the top three on 8.\n\n**Where it leads.** It understands what a moment calls for.\n\n- **Fewest real pauses taken as turns:** 0.06, against Gemini Live 0.10 and GPT-Realtime 0.12 (Full-Duplex-Bench v1.0).\n- **Most relevant answers after an interruption:** 4.61 of 5, against 4.12 for the best reference.\n- **Talks through an \"mm-hm\":** it carries on; every end-to-end system in Full-Duplex-Bench v1.5 stops within 0.7 s.\n- **Lets background speech pass:** second only to Nova Sonic (0.56, against Gemini 0.30 and GPT-4o 0.04).\n- **Catches interruptions between two people:** 0.92 on TurnBench from words alone, 4th of 16, ahead of GPT Live and\n  Gemini Live, which caught none.\n\n**Where it trails, and where we would love help.**\n\n- **Pure timing from sound.** On eot-bench (6th of 13 from words alone) and TurnBench end of turn (8th of 16) the\n  leaders are small audio models trained on that kind of conversation. The engine now pairs Jev with an open audio\n  model and answers only when both say finished: in Chinese, at 2% false cutoffs, that waits less than VoxTurn but\n  more than the closed LiveKit v1, and at a tight 300 ms it still cuts in more often than either; in English VoxTurn\n  alone is best ([details](#end-of-turn-livekit-eot-bench)).\n- **Speed after an interruption.** 1.7 s, against 0.3–1.5 s for end-to-end models; most of it is the language model\n  writing its first line, so a faster model or an earlier first sentence closes much of the gap.\n- **Synthetic pauses** (0.14 on Full-Duplex-Bench v1.0): it answers clauses that sound finished.\n\nEvery decision is a readable question and every run can be replayed, so a contribution is a reworded question, a new\nadapter or a policy, measured on the same benchmarks. Issues and pull requests are welcome.\n\nTo our knowledge this is the first full-duplex framework that writes turn-taking as plain-language decisions, and,\nzero-shot, it is already state of the art on the decisions that take understanding.\n\n## Why\n\n| | cascade + turn detector | end-to-end duplex model (Moshi, GPT-4o Realtime, Gemini Live) | Jev-Interaction |\n|---|---|---|---|\n| when to answer | a trained end-of-turn model, one threshold | learned inside the model; you cannot see or move it | a question Jev answers from the words, the timing and the conversation |\n| listening sounds | none, or a fixed clip | whatever the model learned | decided each time: a continuer, a reaction, an echoed word, or nothing |\n| being talked over | stop on any voice, or never | learned; on Full-Duplex-Bench v1.5 every one of them stops within 0.7 s for an \"mm-hm\" | carry on, yield, finish the sentence, take the floor back, or react at once |\n| silence | a timeout | the model's habit | go on, check in, wait, or hang up, weighed against how this caller talks |\n| a persona or a new task | retrain or re-tune the detector | a prompt changes the words; the timing stays the model's | a task profile: the manner Jev reads and the policy per decision, so the persona changes how it takes turns |\n| changing behaviour | collect data, retrain | wait for the vendor, or retrain a very large model | reword a question, replay recorded calls, ship |\n| why it did that | a score | not inspectable | every decision logged with the state Jev read and its probabilities |\n| model and voice | any | the vendor's model and voices | any language model, any synthesizer and voice |\n| long calls | no session cap | a session cap (OpenAI Realtime: 60 min) or audio tokens filling the context (Gemini Live: about 15 min of audio before compression drops or summarizes old turns) | no session cap: each decision and each reply is a fresh request over a text history, about 200 tokens per minute of speech |\n| speed | the language model's | the fastest: 0.3–1.5 s to answer after an interruption on Full-Duplex-Bench v1.0 | 1.7 s after an interruption, mostly the language model writing its first line |\n\n## Task profiles\n\nOne framework, many products. A profile says what the agent is for, how it behaves on a call, and how each decision is\nread.\n\n| profile | listening sounds | mid-sentence pauses | talked over | silence | policies |\n|---|---|---|---|---|---|\n| [companion](jev_interaction\u002Fprofiles\u002Fcompanion.yaml) | often, varied | quick to react | stops, delighted | fills it | defaults |\n| [support](jev_interaction\u002Fprofiles\u002Fsupport.yaml) | a short \"okay\" | waits (numbers being read) | stops at once | waits, then one check | thresholds |\n| [tutor](jev_interaction\u002Fprofiles\u002Ftutor.yaml) | encouraging | very patient | finishes the explanation | offers a prompt | defaults |\n| [interviewer](jev_interaction\u002Fprofiles\u002Finterviewer.yaml) | none | lets thinking run | cuts in on rambling | waits for the answer | mixed |\n| [Vera · speaking coach](jev_interaction\u002Fprofiles\u002Fvera.yaml) | almost none | lets silence work | finishes her sentence | gives the next exercise | thresholds |\n| [话唠阿乐 · chatterbox](jev_interaction\u002Fprofiles\u002Fchatterbox_zh.yaml) | constant | jumps in | finishes his sentence | can't bear one | defaults |\n| [小奶狗小言 · sweet puppy](jev_interaction\u002Fprofiles\u002Fpuppy_zh.yaml) | soft \"mm, and then?\" | waits | stops the moment you speak | asks if you're okay | defaults |\n| [电商客服小安 · support (Chinese)](jev_interaction\u002Fprofiles\u002Fsupport_zh.yaml) | a rare \"好的\" | never cuts in on an order number | stops at once | one check | thresholds |\n\n```yaml\nname: Sam\ntask: A customer-support agent for a broadband provider.\nprompt: >            # read by the language model\n  Be clear and brief, confirm what you understood, one step at a time.\nmanner: >            # read by Jev\n  Waits for the caller to finish even through long pauses (they may be reading a number). Stops at once when talked over.\npolicies:\n  end_of_turn: {type: threshold, default: 0.7}\n  quiet: argmax\n```\n\n## Quickstart\n\nFrom PyPI, in any folder; the page walks you through each provider and key:\n\n```bash\npip install \"jev-interaction[server]\"     # add ,sound for the sound model and ,voiceprint for the caller's voiceprint\njev-interaction serve                     # http:\u002F\u002Flocalhost:8080\n```\n\nOr from a clone, one command installs everything, starts the server and opens the page:\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fnative-bond-lab\u002FJev-Interaction && cd Jev-Interaction\n.\u002Fscripts\u002Fsetup.sh            # --china installs through a domestic PyPI mirror\n```\n\nOr with Docker (any OS):\n\n```bash\ncp .env.example .env          # fill it in, or leave it empty and use the setup steps on the page\ndocker compose up             # http:\u002F\u002Flocalhost:8080\n```\n\nOpen \u003Chttp:\u002F\u002Flocalhost:8080>. Setup goes one node at a time: the judge (Jev), a language model, speech recognition, a\nvoice. Paste a key and the page recognises whose it is; pick the language model from the endpoint's own model list; test\neach step before moving on. Settings are saved to `.env` in the folder you started from. Make a persona of your own or change one with **New\npersona** \u002F **Edit** under the cards (on your own machine or your own Docker; a public deployment does not offer it):\nwho it is for the language model, its habits on a call for Jev, its turn-taking and its voice, saved to `profiles\u002F`. Then pick a persona and click\nthe orb to call (click it again to hang up). The voice detector is TEN VAD, the one our product runs on; headphones still give the cleanest call.\n\n**Every node is your choice.** The language model is any OpenAI-compatible endpoint (xAI, OpenAI, DeepSeek, Qwen,\nDoubao, GLM, Kimi, OpenRouter, Groq, a local Ollama or vLLM server); recognition and voice come from the provider\nregistry, and a third-party package can add its own ([docs\u002Fadapters.md](docs\u002Fadapters.md)). The language model is told\nhow to write for the voice you pick: voices that perform audio tags (ElevenLabs v3\u002Fv4) get a style that uses\n`[laughs]`, `[whispers]`; others get plain spoken words (`jev_interaction\u002Fprompts\u002Fspeech\u002F`).\n\n**Recommended setups**, offered on the setup page and at the bottom of `.env.example`, never applied unless you choose them\n(what each is good for, and how to swap one node: [cookbook\u002Fstacks.md](cookbook\u002Fstacks.md)):\n\n| | recommended (global), proven at scale in our product | recommended (mainland China) |\n|---|---|---|\n| judge | Jev | Bailian `decision-model-preview`, the same protocol (`JEV_PROVIDER=bailian`; what we measured: [cookbook](cookbook\u002Fstacks.md#the-judge-on-the-mainland)) |\n| language model | grok-4.3, reasoning off, temperature 0.7 | qwen-plus via DashScope |\n| recognition | ElevenLabs Scribe v3 Live | Paraformer realtime v2 |\n| voice | ElevenLabs eleven_v4_turbo (audio tags) | CosyVoice v2, per-persona voices (plain words) |\n| keys | Jev, the language model (xAI), TTS (ElevenLabs; `TTS_API_KEY`) | one Bailian (DashScope) key |\n| ready-made file | the bottom of `.env.example` | [`deploy\u002Fmainland-china.env`](deploy\u002Fmainland-china.env): copy to `.env`, fill in two values |\n\n**Presets.** `JEV_PRESET=recommended` (default) is the timing our product runs on today; `tested` adds the knobs\nmeasured below; `default` is the library defaults. In code: `jev_interaction.preset(\"recommended\", language=\"en\")`\n(`production`, its earlier name, still works). What each knob does: [cookbook\u002Fparameters.md](cookbook\u002Fparameters.md).\n\n**Hugging Face Space.** `HF_TOKEN=... .\u002Fscripts\u002Fpush_hf_space.sh \u003Cowner>\u002F\u003Cspace>` publishes this repository as a Docker\nSpace ([card](deploy\u002Fhuggingface\u002FREADME.md)); add the keys as Space secrets and the push sets `MAX_CONCURRENT_CALLS`,\n`MAX_CALL_SECONDS` and `MAX_CALL_MINUTES_PER_DAY` as variables, since every call is billed to them.\n\n### In your own code\n\n```python\nfrom jev_interaction import Config, Profile\nfrom jev_interaction.adapters import best_vad\nfrom jev_interaction.adapters.openai_compat import OpenAICompatResponder\nfrom jev_interaction.adapters.scribe import ScribeRealtime\nfrom jev_interaction.judge import JevClient\nfrom jev_interaction.session import Session\n\nsession = Session(\n    Profile.load(\"support\")          # a built-in persona, or a path to your own YAML,\n    send=my_send,                       # async: deliver events to your client\n    judge=JevClient(),\n    recognizer=ScribeRealtime(language=\"en\"),\n    responder=OpenAICompatResponder(),   # any OpenAI-compatible endpoint\n    vad=best_vad(),                      # TEN VAD (pip install ten-vad), or the energy detector without it\n    config=Config(language=\"en\"),\n)\nawait session.start()\nawait session.on_audio(frame)          # 200 ms of 16 kHz PCM16, as it arrives\nawait session.on_client({\"type\": \"playback\", \"state\": \"idle\"})\n```\n\nEvents to the client: `line`, `listen`, `stop`, `finish_line`, `persona`, `hangup`, plus `user`, `pace` and\n`decision` for display. Client messages: `playback` and `heard`.\n\n### Add a decision\n\nA decision is one module: when it is asked, what Jev is asked, and what the answer does. Write the question:\n\n```python\n# jev_interaction\u002Fjudge\u002Fquestions.py\ndef laugh(name: str) -> dict:\n    return {\"type\": \"choice\", \"instructions\": f\"The user just made a joke. Would {name}, being who they are, laugh?\",\n            \"criteria\": {\"laugh\": f\"{name} finds it funny and laughs\", \"smile\": \"a warm word, no laugh\", \"none\": \"let it pass\"}}\n```\n\nthen the decision, and register it with a policy:\n\n```python\n# jev_interaction\u002Fdecisions\u002Flaugh.py\nfrom .. import speaking\nfrom ..judge import questions as Q\nfrom .base import Decision\n\nspeaking.event(\"laugh\", \"they made a joke; you laugh, in a few words\", answers_user=True, max_tokens=60)\n\n\nclass Laugh(Decision):\n    name = policy = \"laugh\"\n\n    def on_words(self, s):                        # when: new words while the agent is quiet\n        if not s.speaking and not s.generating:\n            s._spawn(self.ask(s))\n\n    def questions(self, s, ctx):                  # what Jev is asked, about the call so far\n        return {\"laugh\": Q.laugh(s.p.short)}\n\n    async def apply(self, s, answers, ctx):       # what the policy's choice does\n        if self.choose(s, answers, \"laugh\", ctx) == \"laugh\":\n            await s.respond(\"laugh\")\n```\n\n```python\nregister(Laugh())                                 # jev_interaction.decisions; or add it to DECISIONS there\nconfig = Config(policies={**Config().policies, \"laugh\": ThresholdPolicy(default=0.6)})\n```\n\nNothing else changes: the session offers every registered decision each new segment of words (`on_words`) and each\n100 ms tick (`on_tick`), and logs the state, the questions and the answers. `allowed` narrows the choices to what\napplies now and `state` adds to what Jev reads; the five built-in decisions in `jev_interaction\u002Fdecisions\u002F` are the\nexamples. Replay recorded calls with `jev-interaction replay runs\u002F*.jsonl --purpose laugh` to see where its answers land.\n\n### Tested knobs\n\nThe knobs measured in \"All knobs together\" below, as `Config` fields. Off by default; each one is a trade-off.\n\n```python\nfrom jev_interaction import Config\ncfg = Config(overlap_ask_ms=1000, listen_max_words=3, not_for_me=True, far_db=10)\n```\n\n| field | what it does | measured effect |\n|---|---|---|\n| `overlap_ask_ms=1000` | ask the floor question only after 1 s of voice over the agent (default 400; measured as `hold_after_ms`, which paused the audio) | an \"mm-hm\" no longer stops the line (stop latency 0.36 s → 3.3 s); a real interruption stops about 0.6 s later |\n| `listen_max_words=3` | drop listening sounds longer than this (default 6) | fewer pauses counted as taking the turn (Full-Duplex-Bench counts 4+ words as a turn) |\n| `not_for_me=True` | a \"not said to me\" choice in the turn and floor questions, never before the first answer | side remarks and background voices let pass instead of answered |\n| `far_db=10` | a voice this many dB under the caller's answered words is someone else's | background speech \"resume\" 0.28 → 0.56; pair it with a voiceprint, or a quiet caller can be dropped |\n\n## Early results\n\nMeasured on the voice-call engine in our product with the 0.1 behaviour (same decision layer, ElevenLabs Scribe and TTS;\nthe experimental listening and overlap changes since 0.1 are not re-measured yet) on [Full-Duplex-Bench](https:\u002F\u002Fgithub.com\u002FDanielLin94144\u002FFull-Duplex-Bench) v1.0: 50 samples per set, drawn with a\nfixed seed. The pause sets used gpt-4o-mini as the language model and the interruption set grok-4.3.\n\n| | this engine (n) | GPT-Realtime | Gemini 3.1 Flash Live (high \u002F minimal) |\n|---|---|---|---|\n| synthetic pauses taken as turns (lower is better) | 0.12 (50) | 0.01 | 0.007 \u002F 0.022 |\n| real-conversation pauses taken as turns | 0.18 (50) | 0.12 | 0.10 \u002F 0.15 |\n| interruptions answered | 0.96 (50) | 0.97 | 0.995 \u002F 1.0 |\n| latency after an interruption (benchmark rule) | 1.79 s mean, 1.68 median | 1.50 s | 0.65 \u002F 0.34 s |\n| relevance of the answer, 0–5 | 4.35 (judged by grok) | 3.85 | 4.12 \u002F 3.58 |\n\n**When the user interrupts.** Full-Duplex-Bench v1.0, 50 interruption samples, grok-4.3. Latency is the benchmark's mean (median 1.68 s); our relevance was judged by grok, the references by the official judge.\n\n\u003Cpicture>\n  \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"docs\u002Fcharts\u002Ffdb10-interruptions.dark.png\">\n  \u003Cimg alt=\"Full-Duplex-Bench v1.0: interruptions answered, latency and relevance vs GPT-Realtime and Gemini\" src=\"docs\u002Fcharts\u002Ffdb10-interruptions.light.png\" width=\"860\">\n\u003C\u002Fpicture>\n\nInterruptions are on par with the commercial systems and the answers score well. Pauses are the weak spot: of the 15\npause samples counted as taking the turn, 9 were the agent speaking up on its own because it believed the line had gone\nquiet (the samples start without a greeting, and some recordings are quiet enough that the voice detector may miss the\ncaller), and 6 were answers before the caller had finished, mostly after a complete first sentence. Latency is mostly\nthe language model writing its first line; the decisions take tens of milliseconds.\n\n### Case study: fixing pauses in two knobs\n\nBecause every decision is logged with the state Jev read, the 15 pause samples counted as \"taking the turn\" could be\ntraced one by one: 9 were the agent speaking up because the quiet-line question fired while the caller was still in\ntheir first sentence (no words recognized yet), 4 were listening sounds longer than the benchmark's three-word limit,\nand 2 were answers after a complete first sentence. Two knobs, tested on the same 100 samples:\n\n| | synthetic pauses | real-conversation pauses |\n|---|---|---|\n| before | 0.12 | 0.18 |\n| no quiet-line question while the caller's voice is going | 0.06 | 0.12 |\n| plus listening sounds capped at three words | **0.06** | **0.08** |\n\n**Pauses taken as the end of the turn, before and after the knobs.** 50 samples per set. Knob 1: no quiet-line question while the caller's voice is going. Knob 2: listening sounds capped at three words. Tested in the harness, not yet in the engine.\n\n\u003Cpicture>\n  \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"docs\u002Fcharts\u002Ffdb10-pauses.dark.png\">\n  \u003Cimg alt=\"Full-Duplex-Bench v1.0: pauses taken as turns, before and after two knobs\" src=\"docs\u002Fcharts\u002Ffdb10-pauses.light.png\" width=\"820\">\n\u003C\u002Fpicture>\n\nReal-conversation pauses now beat the commercial systems in the table above (0.10–0.15). These knobs were tested in the\nbenchmark harness and are not yet in the engine; nothing was retrained.\n\nA third knob, answering only when Jev is at least 0.8 sure the caller has finished, brought real-conversation pauses to\n0.04 without slowing answers after interruptions, but ordinary answers took about a second longer (median 0.8 s → 1.8 s).\nIt stays off: the trade-off is visible, measured and reversible, which is the point.\n\n### End of turn: LiveKit eot-bench\n\n[eot-bench](https:\u002F\u002Fgithub.com\u002Flivekit\u002Feot-bench) scores \"has the user finished?\" at every pause of 400 real user turns\n(English validation split, 11,191 scoring points). We asked Jev the framework's `turn` question as is, from text only\n(words arrive 0.5 s late, as the benchmark requires), zero-shot.\n\n| | false cutoffs at 600 ms wait | wait for 5% false cutoffs |\n|---|---|---|\n| LiveKit Turn Detector v1 | 4.5% | 543 ms |\n| Deepgram Flux | 9.9% | 1151 ms |\n| **Jev, text only, zero-shot** | **12.5%** | **924 ms** |\n| SmartTurn v3.2 | 14.8% | 1051 ms |\n| OpenAI GPT Realtime 2 | – | 1143 ms |\n| silence only | 21.7% | 1600 ms |\n\n**Has the user finished? LiveKit eot-bench.** 400 real user turns, 11,191 scoring points, sorted by the wait needed for 5% false cutoffs. Jev reads words only, zero-shot. Other systems from the published results; – means not reported.\n\n\u003Cpicture>\n  \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"docs\u002Fcharts\u002Feot-bench.dark.png\">\n  \u003Cimg alt=\"LiveKit eot-bench: wait for 5% false cutoffs and false cutoffs at 600 ms\" src=\"docs\u002Fcharts\u002Feot-bench.light.png\" width=\"820\">\n\u003C\u002Fpicture>\n\nMid-table: ahead of AssemblyAI, SmartTurn, Cartesia, OpenAI Realtime and Deepgram at 5%, well behind detectors trained\non audio of this kind of conversation. About 11,000 Jev calls, about one dollar.\n\n**Words and sound together, in the engine.** Words arrive half a second after the sound, so for the first moments of\na pause a text judge has nothing new to read; an audio model hears how the voice ended but not what was said, and the\ntwo miss on different pauses (in English each cut people off on about 85 of 850 mid-turn pauses, only 11 of them the\nsame). Since 0.3.0 the engine asks both: Jev on the words, a sound model on the last 8 s of audio (SmartTurn v3.2 by\ndefault, BSD-2, on the CPU; [your own](docs\u002Fadapters.md#the-sound-model-and-the-voiceprint) plugs in the same way). By\ndefault the turn is taken only when both say finished: cutting someone off is the worse mistake (`Config.sound_rule =\n\"and\"`).\n\nScored on eot-bench **v1.0** (dataset revision `ca9d98a`; the benchmark's main branch is now v1.1, with 1,888 more\nEnglish rows, which we have not run), English validation (400 turns, 11,191 points) and Chinese validation (344\nturns, 9,441 points), from each model's predictions at every scoring point. Lower is better in every column.\n\n| Chinese | wait at 2% false cutoffs | wait at 5% | false cutoffs at 300 ms |\n|---|---|---|---|\n| **Jev + SmartTurn v3.2, both must agree (the engine's default)** | **1050 ms** | **783 ms** | 32.2% |\n| Jev, words only | 1119 ms | 839 ms | 34.5% |\n| SmartTurn v3.2, sound only | 1274 ms | 891 ms | 40.1% |\n| VoxTurn v1 (non-commercial licence) | 1078 ms | 806 ms | 25.0% |\n| LiveKit Turn Detector v1 (closed, LiveKit Agents only) | 1006 ms | 799 ms | 20.6% |\n\n| English | wait at 2% false cutoffs | wait at 5% | false cutoffs at 300 ms |\n|---|---|---|---|\n| **Jev + SmartTurn v3.2, both must agree (the engine's default)** | **1248 ms** | **835 ms** | 29.6% |\n| Jev, words only | 1552 ms | 924 ms | 36.7% |\n| SmartTurn v3.2, sound only | 1763 ms | 1045 ms | 32.8% |\n| VoxTurn v1 (non-commercial licence) | 1000 ms | 462 ms | 8.5% |\n| LiveKit Turn Detector v1 (closed, LiveKit Agents only) | 991 ms | 543 ms | 9.9% |\n\nWhat this says, the losses included:\n\n- **Chinese.** Requiring both waits less than either half alone at every budget. At 2% false cutoffs it waits less\n  than VoxTurn (1050 against 1078 ms) but more than the closed LiveKit v1 (1006 ms); at 5% it waits less than both\n  (783 against 806 and 799 ms). At a tight 300 ms it loses clearly: 32% of mid-turn pauses cut off, against 25% and\n  21%. The sound model needs a stretch of quiet to be sure, and the words are not in yet.\n- **English.** VoxTurn alone is the best of everything here, the closed LiveKit v1 included. Requiring both takes Jev\n  from 1552 to 1248 ms at 2%, still far behind the trained audio models.\n- **Why SmartTurn.** It is the audio model we may ship: VoxTurn is CC BY-NC, LiveKit v1 may only be used inside\n  LiveKit Agents. Another one plugs in through the registry.\n- **How far to trust it.** The rule and its lines (`sound_min` by language, `words_min`) were chosen on these same\n  splits; there is no held-out split and no test on recorded calls yet. Every reading of the sound model and every\n  turn it held back is in the call log, to set the lines on your own calls.\n\nSmartTurn and VoxTurn are read all through the pause, as the engine reads SmartTurn. LiveKit v1 is read once at 0.2 s\nand held, as on the benchmark's leaderboard; read all through the pause it waits longer (1026 ms in Chinese, 1460 ms in\nEnglish, at 2%). VoxTurn read the leaderboard's way: 1131 \u002F 830 ms in Chinese, 982 \u002F 669 ms in English.\n\n### Being talked over: Full-Duplex-Bench v1.5\n\n25 noisy samples per scenario, grok-4.3, scored with the official judge (gpt-4o-2024-08-06).\n\n| scenario | wanted | this engine | paper (GPT-4o · Gemini · Nova Sonic · Moshi) |\n|---|---|---|---|\n| user interrupts | respond | 0.52 | 0.78 · 0.33 · 0.24 · 0.50 |\n| | stop latency | **0.54 s** | 0.23 · 2.20 · 2.25 · 1.16 |\n| user backchannels | resume | 0.36 | 0.70 · 0.93 · 0.98 · 0.06 |\n| user talks to someone else | resume | 0.24 | 0.02 · 0.99 · 0.90 · 0.19 |\n| background speech | resume | 0.32 | 0.04 · 0.30 · 0.98 · 0.07 |\n\n**What the judge saw.** Share of the wanted label per scenario, 25 noisy samples each; paper systems from Table 2. Before\u002Fafter changes are within the ±0.08 noise of 25 samples.\n\n\u003Cpicture>\n  \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"docs\u002Fcharts\u002Ffdb15-behavior.dark.png\">\n  \u003Cimg alt=\"Full-Duplex-Bench v1.5: judge labels per scenario vs the paper's systems\" src=\"docs\u002Fcharts\u002Ffdb15-behavior.light.png\" width=\"820\">\n\u003C\u002Fpicture>\n\nIt stops fast, but it also stops for an \"mm-hm\", a side remark or a voice in the room. The traces show why: Jev reads\nmost backchannels right (carry on, 19 of 25), but playback is paused 0.4 s into any voice, before the words are known;\nand the `floor` question had no choice for \"this is not said to me\", so side remarks ended the line early and got\nanswered. Two knobs, tested in the harness: pause only after 1 s of voice, and add that choice. The agent then talked\nthrough every backchannel (stop latency 0.36 s → 4.0 s; every system in the paper stops within 0.7 s) and let 9 of 25\nside remarks pass, at the cost of stopping 0.6 s later for real interruptions (1.15 s). The judge's labels did not move\nbeyond the noise of 25 samples: it compares the answer against a separate clean run, and a companion's short, varied\nanswers rarely read as \"the same content, resumed\".\n\n**How long until the agent stops talking.** Median stop latency by the benchmark's rule. Two knobs: pause playback only after 1 s of voice, and a \"not said to me\" choice. Tested in the harness; the deployed engine is unchanged.\n\n\u003Cpicture>\n  \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"docs\u002Fcharts\u002Ffdb15-stop.dark.png\">\n  \u003Cimg alt=\"Full-Duplex-Bench v1.5: time to stop when interrupted and when the user says mm-hm\" src=\"docs\u002Fcharts\u002Ffdb15-stop.light.png\" width=\"820\">\n\u003C\u002Fpicture>\n\n### Task profiles: does behaviour follow the profile?\n\nThe four shipped profiles on the same 12 recordings (long story, mid-sentence pause, interruption, silence), with and\nwithout the manner shown to Jev. Separation = how often a profile expected \"high\" on an axis scores above one expected\n\"low\" on the same recording (0.5 = no difference). Three recordings per cell, so read it as a direction.\n\n| axis | manner shown | no manner |\n|---|---|---|\n| listening sounds | **0.83** | 0.25 |\n| speaks up in a silence | **0.67** | 0.50 |\n| lets a mid-sentence pause stand | 0.39 | 0.50 |\n| stops when talked over | 0.50 | – |\n| overall | **0.60** | 0.42 |\n\n**Does behaviour follow the profile?** Separation across the four shipped profiles on 12 recordings, with and without the manner shown to Jev; 0.5 means no difference. Three recordings per cell, so read it as a direction.\n\n\u003Cpicture>\n  \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"docs\u002Fcharts\u002Ftask-profiles.dark.png\">\n  \u003Cimg alt=\"Task profiles: separation with and without the manner shown to Jev\" src=\"docs\u002Fcharts\u002Ftask-profiles.light.png\" width=\"620\">\n\u003C\u002Fpicture>\n\nListening sounds per minute with the manner shown: tutor 7.5, companion 3.0, support 2.3, interviewer 1.0. Pauses do\nnot separate (no profile took the turn), and every profile yields when talked over, including the tutor that should\nfinish its sentence: playback is paused before the floor question is asked, as above.\n\n### Two people talking: TurnBench\n\n[TurnBench](https:\u002F\u002Fturnbench.sesame.com) listens to two people in free conversation, one microphone each, and asks\nwhen a speaker's turn ends (EOT) and when one takes the floor from the other (INT). We ran 6 dev conversations (about an\nhour): Scribe words per channel, Jev asked at each pause and each overlap, no audio model, no TurnBench training data.\nThresholds and question wording were chosen on these same 6 conversations, so the numbers lean optimistic.\n\n| | EOT recall (false positives ≤ 0.10) | INT recall |\n|---|---|---|\n| vap (trained on TurnBench's training set) | 0.86 | 0.99 |\n| kyutai semantic VAD | 0.84 | 0.98 |\n| **Jev, words only** | **0.67** (8th of 16) | **0.92** (4th of 16) |\n| GPT Live | 0.62 | 0.00 |\n| Gemini Live | 0.73 | 0.00 |\n\nThe other speaker leaks into each microphone: about 30% of one channel's words were the other person, 20–40 dB\nquieter. Dropping those words took INT false positives on one conversation from 0.39 to 0.06. The first EOT question\n(\"has A finished?\") missed turns the other speaker had already taken over; asking \"whose turn is it now?\" raised EOT\nrecall from 0.48 to 0.63, and the engine's own voiceprint check on unclear words to 0.67.\n\n### All knobs together\n\nOne engine setup with every knob above (no quiet-line question while the caller talks, short listening sounds, pause\nafter 1 s of voice, a \"not said to me\" choice in both the floor and the turn question, and a voice 10 dB or more under\nthe caller's answered words treated as someone else's), grok-4.3 throughout, the v1.5 clean reference re-run with the\nsame setup. Tested in the harness; the deployed engine is unchanged.\n\n| | engine as deployed | all knobs | best reference |\n|---|---|---|---|\n| v1.0 real-conversation pauses taken as turns | 0.18 | **0.06** | Gemini (high) 0.10 |\n| v1.0 synthetic pauses taken as turns | 0.12 | 0.14 | Gemini (high) 0.007 |\n| v1.0 interruptions answered | 0.96 | 0.98 | Gemini (minimal) 1.0 |\n| v1.0 latency after an interruption | 1.79 s | 1.68 s | Gemini (minimal) 0.34 s |\n| v1.0 relevance (judged by grok) | 4.35 | **4.61** | Gemini (high) 4.12 |\n| v1.5 user interrupts: respond | 0.52 | 0.56 | GPT-4o 0.78 |\n| v1.5 user interrupts: stop latency | 0.54 s | 1.21 s | GPT-4o 0.23 s |\n| v1.5 user backchannels: stop latency (longer is better) | 0.36 s | **3.32 s** | 0.66 s |\n| v1.5 user talks to someone else: resume | 0.24 | 0.40 | Gemini 0.99 |\n| v1.5 background speech: resume | 0.32 | **0.56** | Nova Sonic 0.98 |\n\n**One engine setup, every knob on.** Engine as deployed (light), all knobs (dark), and the best reference system per metric (gray, named). Harness only; the deployed engine is unchanged.\n\n\u003Cpicture>\n  \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"docs\u002Fcharts\u002Fall-knobs.dark.png\">\n  \u003Cimg alt=\"All knobs together: engine as deployed, all knobs, and the best reference per metric\" src=\"docs\u002Fcharts\u002Fall-knobs.light.png\" width=\"900\">\n\u003C\u002Fpicture>\n\nAcross 16 metrics against outside systems (the four benchmarks above), the deployed engine ranks first on 1 and in the\ntop half on 7; with all knobs, first on 3 and in the top half on 10.\n\n### Every number comes with a reason\n\nAn end-to-end model gives a score. A pipeline gives the score and the decisions behind it, because every decision is\nlogged with the state Jev read and the probabilities it returned. What the traces of the all-knobs run say:\n\n| number | what actually happened |\n|---|---|\n| backchannel stop latency 3.32 s | Not slow: it did not stop. In the 23 traced samples Jev was asked the floor question 20 times and said \"carry on\" 20 times. The 3.3 s is the rest of the sentence; every system in the paper stopped within 0.7 s, i.e. an \"mm-hm\" cut them off. |\n| backchannel \"resume\" 0.32 | The same samples. The judge compares the reply with a separate clean run, and a companion's short, varied replies rarely read as \"the same content, resumed\". With the same reply in both runs (temperature 0) it rose to 0.56, and talking to others and background speech rose with it. |\n| interruption stop latency 1.21 s | A choice: playback pauses after 1 s of voice so a backchannel can be told from an interruption. On the 21 floor questions over real interruptions Jev chose yield 7, finish the sentence 7, carry on 7; the last are visible misses. |\n| latency after an interruption 1.68 s | Median 1.71 s over 41 traced turns: 0.8 s waiting to be sure the caller has finished, 0.75 s for the language model's first words, 0.1 s for synthesis and playback. The decisions take tens of milliseconds. |\n| real-conversation pauses 0.06 | 3 of 50, each in the trace with the probability Jev gave; one was a one-word \"Mm.\" |\n| synthetic pauses 0.14 | 7 of 50, mostly answers right after a clause that sounded finished (\"Yeah? What's the story about?\"). The synthetic voice pauses after complete clauses. |\n| background speech 0.56 | 15 of 22 traced samples were treated as someone else's voice (the 10 dB rule did most of it, Jev's \"not said to me\" the rest). The 7 still answered had a caller who spoke quietly themselves (less than 10 dB apart) or a first line too short to measure. |\n| TurnBench EOT 0.67 | Words arrive after the sound; the audio models that lead were trained on two-person conversation of this kind. |\n\n## Swappable pieces\n\n| piece | protocol | included |\n|---|---|---|\n| VAD | `is_voice(pcm) -> bool`, optionally `voiced_ms(pcm, playing) -> int` | `TenVAD`, `EnergyVAD` |\n| recognizer | streaming, closed segments | `ScribeRealtime` (ElevenLabs), `ParaformerRealtime` (Alibaba Cloud Bailian) |\n| responder | `lines(messages) -> async lines` | `OpenAICompatResponder` |\n| synthesizer | `audio(text) -> async bytes` | `ElevenLabsTTS`, `CosyVoiceTTS` (Alibaba Cloud Bailian) |\n| sound model (optional) | `score(pcm) -> p(finished)`, `ready`, `warm()` | `SmartTurn` (`[sound]` extra): has the user finished, from the voice; `JEV_SOUND` picks a registered one |\n| speaker embedder (optional) | `embed(pcm) -> unit vector`, `ready`, `warm()` | `EcapaEmbedder` (`[voiceprint]` extra): the caller's voiceprint, from 20 s read before the call and the call itself, cleared at hang-up; `JEV_VOICEPRINT` picks a registered one |\n| judge | `ask(questions, state) -> probabilities` | `JevClient` |\n| policy | `choose(probs, allowed)`, `draw(p)` | `ThresholdPolicy` (every default), `ArgmaxPolicy`, `SamplePolicy` (draws, for whoever wants them) |\n\n## Layout\n\n```\njev_interaction\u002F\n  session.py          one call: its state and its loop (audio in, lines out)\n  decisions\u002F          one module per decision: turn · listen · floor · cut_in · quiet\n  judge\u002F              Jev client · the question set · the state text\n  utterance.py        what the user is saying now: words, length, loudness\n  speaking.py         what the responder is told before each kind of line\n  policy.py           sample · threshold · argmax\n  profile.py          task profiles\n  config.py           paces, timings, default policies\n  presets.py          recommended · tested · default\n  ledger.py           the call's one record, on one clock: turns, their times, what was judged and done\n  recorder.py         one JSON line per event, for replay\n  adapters\u002F           VAD · recognizer · responder · synthesizer · sound model · voiceprint; registry.py lists the providers\n  prompts\u002F            the responder's system prompt; speech\u002F holds one writing style per kind of voice\n  profiles\u002F           the built-in personas\n  server\u002F             call server (WebSocket, line audio, profiles, health, settings) and its page (web\u002F)\n  replay.py           re-ask the recorded questions, as asked or reworded\n  testing.py          fake judge, recognizer, responder, VAD and synthesizer: a call with no keys\n  cli.py              `jev-interaction serve` \u002F `init` \u002F `replay`\nscripts\u002Fsetup.sh      one-click local setup (--china: domestic PyPI mirror)\ndeploy\u002Fhuggingface\u002F   Hugging Face Space card; scripts\u002Fpush_hf_space.sh publishes it\ndeploy\u002Fmainland-china.env  the setup that measured best in mainland China, ready to copy to .env\ntools\u002F                judge_bench · persona_bench · draw_policy (docs\u002Fpolicy.svg) and other measurement scripts\ncookbook\u002F             stacks · parameters · role policies: recipes, not defaults\ndocs\u002F                 the policy and architecture diagrams, benchmark charts, the protocol\n```\n\n## Roadmap\n\n- Send the first sentence to synthesis as soon as it ends, not at the line break.\n- A second recognizer behind the existing protocols.\n- Turn the tested knobs on in our product's engine (here they are `Config` options), with a voiceprint beside the 10 dB rule (a quiet real caller must not become \"someone else\").\n- Judge v1.5 against a fixed clean answer (same reply in both runs).\n- The sound model's lines set on recorded calls and a held-out split, and a closer look at the tight 300 ms budget.\n- Full TurnBench dev (38 conversations) for thresholds, then the hidden test set; larger task-profile runs.\n- Benchmark harnesses in this repository, run against this package.\n\n## FAQ\n\n**Is Jev a voice-activity detector here?** No. Jev never hears audio. Voice activity, the recognizer, the sound\nmodel and the voiceprint are the ears and give signals; Jev answers small facts about the user and the call, and the\npolicy turns them into one action per moment ([the policy](#the-policy)).\n\n**Is Jev required?** The judge is one protocol (`ask(questions, state)`). Jev is what this was built and measured with;\nanother judge that returns probabilities per choice fits the same slot.\n\n**How long can a call last?** As long as you like. Nothing holds a session open on a model provider: Jev and the\nlanguage model are asked turn by turn over a text history, and a minute of speech is about 200 tokens of text against\nabout 1,500 tokens of audio in a speech-to-speech model (Gemini Live counts 25 tokens per second). The history the\nresponder sees is windowed, so a very long call keeps its early turns only through a memory or summary you add.\n\n**Does it need a big model for speed?** No. The decisions run in tens of milliseconds. Response speed follows the\nlanguage model you plug in.\n\n**What does it cost?** On our measurements, a minute of call audio is a few cents, most of it the language model.\n\n## Citing\n\nIf Jev-Interaction helps your research, please cite it. GitHub's **Cite this repository** button reads\n[CITATION.cff](CITATION.cff); the BibTeX is:\n\n```bibtex\n@software{jev_interaction,\n  author  = {Yang, Hengjie and Wu, Zipeng},\n  title   = {Jev-Interaction: full-duplex voice turn-taking as plain-language decisions},\n  year    = {2026},\n  version = {0.3.0},\n  url     = {https:\u002F\u002Fgithub.com\u002Fnative-bond-lab\u002FJev-Interaction},\n  license = {Apache-2.0}\n}\n```\n\n## Acknowledgements\n\nThanks to [Jev](https:\u002F\u002Ftypesafe.ai) and the TypeSafe team: the idea of turn-taking as questions only works because a\njudge can answer them in tens of milliseconds, with a probability per choice, from plain text. Thanks also to the\nauthors of Full-Duplex-Bench, LiveKit eot-bench and TurnBench for open benchmarks and published baselines.\n\n## Status\n\n**At scale.** Native Bond Lab is the applied lab behind a consumer voice product. The voice-call engine in that product\nruns at scale on real calls with real users, with the same design of decisions, questions, paces and policies, and\nJev judges every moment. Every benchmark number above was measured on that engine.\n\n**This repository: 0.3, alpha.** The decision layer is the tested part. The browser client is a\nminimal stand-in; bring your own VAD, recognizer, language model and voice through the protocols in\n[Swappable pieces](#swappable-pieces). Jev is a hosted API (`JEV_API_KEY`).\n\n| | |\n|---|---|\n| decision layer (questions, state, policies, paces, profiles) | tested, running at scale in our product |\n| session and server | working; used by the tests and the browser client |\n| browser client | minimal, for trying it out |\n| benchmark harnesses | not in this repository yet (see the roadmap) |\n| public surface | written down in [docs\u002Fstability.md](docs\u002Fstability.md); frozen from 1.0.0-beta |\n\nLicensed under Apache-2.0 (see [LICENSE](LICENSE)). Jev-Interaction is an independent project built on Jev; it is not\naffiliated with or endorsed by TypeSafe.\n","Jev-Interaction 是一个面向实时语音交互的全双工对话控制系统，将对话轮转（turn-taking）建模为可编程的轻量级决策问题，由专用推理引擎 Jev 在毫秒级响应。其核心特点是解耦‘快思维’（Jev 负责听觉感知、打断检测、沉默判断、回声应答等低延迟交互行为）与‘慢思维’（LLM 负责语义生成），支持边说边听、自然插话、背信回应（backchannel）和动态话轮交接。项目不依赖端到端模型训练，所有轮转逻辑通过声明式问题定义，适合构建高响应性、可解释、可调试的语音代理系统，尤其适用于客服、智能助手、远程医疗等需真实通话体验的场景。",2,"2026-11-24 04:53:02","CREATED_QUERY"]