🦊 fennec-interrupt-150m-v1
Your voice agent is talking and the caller makes a sound. Is it a nod, or are they taking the turn?
- Made for voice agents: phone bots, voice assistants, anything where a person talks over the agent.
- Python package:
pip install fennec-voice(github.com/stsfaroz/fennec-voice) - Full voice demo (VAD, speech-to-text, both Fennec models, LLM, TTS, browser UI): github.com/stsfaroz/fennec-voice-demo
What it does
- Input: what the agent had already said, what it was about to say, and what the caller said.
- Output: one of 10 labels.
BACKCHANNEL→ the agent keeps talking. Any other label → the agent stops.
| Label | Example (said while the agent talks) | Agent |
|---|---|---|
BACKCHANNEL |
"mm-hmm", "uh-huh", "okay" (mid-sentence) | keeps talking |
ACK_AFTER_QUESTION |
"yes, that's right" (as the agent's question ends) | stops |
ANSWER |
"Chennai to Delhi" | stops |
QUESTION |
"how much is the baggage fee?" | stops |
CORRECTION |
"no, sorry, business class" | stops |
STOP_REQUEST |
"stop, stop, that's enough" | stops |
HOLD_REQUEST |
"wait, hold on, let me check" | stops |
CANT_HEAR |
"sorry, what?" | stops |
PICKUP_GREETING |
"hello?" | stops |
TAKES_TURN |
anything else that takes the floor | stops |
Said / not yet said
The same word can mean different things. So the model also reads where the agent was:
- said: the agent's words the caller had already heard when they spoke.
- unsaid: the rest of the agent's sentence (not heard yet).
- caller: the caller's words (speech-to-text).
| said | unsaid | caller | label |
|---|---|---|---|
| "Your flight from Mumbai to Delhi is" | "on the seventeenth of October." | "mm-hmm" | BACKCHANNEL |
| "So that is Mumbai to Delhi, business class. Is that" | "correct?" | "yes, that's right" | ACK_AFTER_QUESTION |
How to use
GPU
pip install fennec-voice
CPU only (smaller download)
pip install torch --index-url https://download.pytorch.org/whl/cpu
pip install fennec-voice
from fennec_voice import FennecInterrupt
model = FennecInterrupt("fennec-interrupt-150m-v1")
result = model.predict(
said="Your flight from Mumbai to Delhi is",
unsaid="on the seventeenth of October.",
caller="mm-hmm",
)
print(result.label, result.keep_talking)
# BACKCHANNEL True
predict()returnslabel,keep_talking,p_stopand all 10probs.fennec.pyin this repo still works without the package.- The text is lowercased and cleaned for you. The GPU is used when available.
- Run it while the caller is still speaking (every ~0.25 s on the words so far). Stop the agent as soon as the label is not
BACKCHANNEL.
Speed
Batch 1, laptop (Ryzen 7 5800H, RTX 3070 8 GB):
| latency | |
|---|---|
| CPU, 4 threads, fp32 | ~60 ms |
| GPU, fp16 | ~12 ms (0.3 GB) |
Good to know
- English only. Text only: put a speech-to-text model in front.
- "okay" / "right" can mean "yes": if the agent's sentence ends in a yes/no question, the model may read them as an answer (
ACK_AFTER_QUESTION). "mm-hmm" stays a nod. - Give it the agent's real unsaid words. An empty unsaid part (agent between sentences) can make a nod look like a reply.
- Input is capped at 96 tokens; a very long unsaid part is cut from its end.
- v1, hobby work: test it on your own calls before relying on it.
Details
- Base model: answerdotai/ModernBERT-base (149M parameters).
format_input.pyandtextnorm.pyare from ozonetg/bargein-classifier-ettin-150m (MIT), used unchanged.