Voice agents should know when not to speak.
PROJECT
Baobab TurnROLE
Creator and maintainerAn explainable guard layer that makes end-of-turn decisions more cautious for speakers whose rhythm, language, or pitch falls outside a detector's training data.
SYSTEM ARCHITECTURE
Prediction becomes a decision.
The host detector remains in place. Baobab intervenes only after a prediction exists and before the conversation loop commits to speaking.
DECISION TRACE
See exactly why the guard changed or kept the prediction.
Each example starts with the same inner-detector probability of 0.75 and a commit threshold of 0.50. Choose a transcript tail to inspect the evidence path.
“i wan tell you say the thing be say”
- Decision
- KEEP LISTENING
- Reason
continuation_veto:the thing be say- Behavior
- Probability suppressed
“e don finish abi”
- Decision
- COMMIT TURN
- Reason
yield_boost:abi- Behavior
- Probability raised
“i go come tomorrow”
- Decision
- COMMIT TURN
- Reason
no_rules_fired- Behavior
- Inner result unchanged
“the thing be say…” · tail age 1,260 ms
- Decision
- COMMIT TURN
- Reason
tail_stale- Behavior
- Lexical layer abstains
01 / THE PROBLEM
Transcription can be right while turn ownership is wrong.
English-centric timing and intonation assumptions can interpret a meaningful pause, tonal contour, code-switch, or local discourse cue as the end of a speaker's turn.
Tonal interference
A low lexical tone can resemble the falling contour a detector interprets as completion.
Code-switching
A speaker can change language assumptions inside one utterance.
Unseen lexical cues
Markers such as 'abi', 'sha', or 'the thing be say' can explicitly signal whether more speech is coming.
Different pacing
Second-language speech, age, a stammer, or poor connectivity can create longer but meaningful pauses.
02 / THE SYSTEM
A guardrail, not another model.
The intervention sits between prediction and commitment. It wraps the detector already in production, keeps the decision core framework-neutral, and never owns the conversation loop.
Pure decision core
Immutable inputs and outputs, marker matching, pacing signals, probability adjustment, and no framework imports.
baobab_turn/coreLanguage packs
YAML packages keep marker weights, tonal flags, delays, provenance, and validation status as inspectable data.
baobab_turn/packsThin adapters
LiveKit, Pipecat, text chat, and Ultravox translate host events into one stable core contract.
baobab_turn/adaptersEvidence loop
Corpus replay, ablations, pack validation, marker mining, and reason-level metrics make each hypothesis testable.
bench · tools · tests03 / DECISION DESIGN
One prediction in. One accountable decision out.
The priority is explicit: a false interruption is more harmful than a small amount of extra latency.
Sanitize
Reject non-finite values and clamp valid probabilities to a safe range.
Trust
Missing, stale, or agent-speaking transcript tails cause an abstention.
Interpret
Longest marker match wins; continuation wins ties.
Explain
Every adjustment and non-adjustment returns an inspectable reason.
04 / EVIDENCE
Promising signal, honestly bounded.
The current benchmark isolates the lexical layer against transcript data. It does not claim end-to-end voice-agent improvement.
What it proves
Speaker-reviewed Pidgin markers carry strong directional signal at the decision points where they appear.
What it does not prove
The replay contains no live audio, so silence, pitch, latency, and the complete guard are not measured.
Why coverage matters
Lexical rules apply to 4.2% of boundaries. Broader gains must come from pacing, pitch, language context, and detector probability.
Safe degradation
Unknown languages and weak evidence fall back to the host detector instead of silently changing behavior.
TECHNOLOGY
A small layer with a human-sized goal: let people finish.