RADIANT.OPEN-SOURCE VOICE AI
01 / CASE STUDYOpen source · v0.1.2

Voice agents should know when not to speak.

PROJECT

Baobab Turn

ROLE

Creator and maintainer

An 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.

5,746Pidgin turn boundariesCENCOS transcript replay
89.9%Directional accuracyWhen the lexical layer fires
4.2%Lexical coverageNarrow by design
387Test functionsRepository snapshot

SYSTEM ARCHITECTURE

Prediction becomes a decision.

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”
0.00COMMIT THRESHOLD · 0.501.00
INNER 0.750ADJUSTED 0.345
Decision
KEEP LISTENING
Reason
continuation_veto:the thing be say
Behavior
Probability suppressed
“e don finish abi”
0.00COMMIT THRESHOLD · 0.501.00
INNER 0.750ADJUSTED 0.818
Decision
COMMIT TURN
Reason
yield_boost:abi
Behavior
Probability raised
“i go come tomorrow”
0.00COMMIT THRESHOLD · 0.501.00
INNER 0.750ADJUSTED 0.750
Decision
COMMIT TURN
Reason
no_rules_fired
Behavior
Inner result unchanged
“the thing be say…” · tail age 1,260 ms
0.00COMMIT THRESHOLD · 0.501.00
INNER 0.750ADJUSTED 0.750
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.

01

Tonal interference

A low lexical tone can resemble the falling contour a detector interprets as completion.

02

Code-switching

A speaker can change language assumptions inside one utterance.

03

Unseen lexical cues

Markers such as 'abi', 'sha', or 'the thing be say' can explicitly signal whether more speech is coming.

04

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.

01

Pure decision core

Immutable inputs and outputs, marker matching, pacing signals, probability adjustment, and no framework imports.

baobab_turn/core
02

Language packs

YAML packages keep marker weights, tonal flags, delays, provenance, and validation status as inspectable data.

baobab_turn/packs
03

Thin adapters

LiveKit, Pipecat, text chat, and Ultravox translate host events into one stable core contract.

baobab_turn/adapters
04

Evidence loop

Corpus replay, ablations, pack validation, marker mining, and reason-level metrics make each hypothesis testable.

bench · tools · tests

03 / 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.

01

Sanitize

Reject non-finite values and clamp valid probabilities to a safe range.

02

Trust

Missing, stale, or agent-speaking transcript tails cause an abstention.

03

Interpret

Longest marker match wins; continuation wins ties.

04

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.

01

What it proves

Speaker-reviewed Pidgin markers carry strong directional signal at the decision points where they appear.

02

What it does not prove

The replay contains no live audio, so silence, pitch, latency, and the complete guard are not measured.

03

Why coverage matters

Lexical rules apply to 4.2% of boundaries. Broader gains must come from pacing, pitch, language context, and detector probability.

04

Safe degradation

Unknown languages and weak evidence fall back to the host detector instead of silently changing behavior.

TECHNOLOGY

PythonLiveKitPipecatUltravoxYAMLpytest

A small layer with a human-sized goal: let people finish.

GitHub PyPI Citable release