pip install fennec-voice (github.com/stsfaroz/fennec-voice)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 |
The same word can mean different things. So the model also reads where the agent was:
| 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 |
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() returns label, keep_talking, p_stop and all 10 probs.fennec.py in this repo still works without the package.BACKCHANNEL.Batch 1, laptop (Ryzen 7 5800H, RTX 3070 8 GB):
| latency | |
|---|---|
| CPU, 4 threads, fp32 | ~60 ms |
| GPU, fp16 | ~12 ms (0.3 GB) |
ACK_AFTER_QUESTION). "mm-hmm" stays a nod.format_input.py and textnorm.py are from ozonetg/bargein-classifier-ettin-150m (MIT), used unchanged.answerdotai/ModernBERT-base