isair/jarvis

Task 1a — Expose confidence score from listener.py when transcript is rejected

Open

#373 aperta il 5 mag 2026

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)Python (201 fork)github user discovery
enhancementgood first issue

Metriche repository

Star
 (1090 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Task 1a — Expose confidence score on low-confidence rejection

Part of Task 1: Low Confidence Voice Feedback.

What to do

In src/jarvis/listening/listener.py, find where Whisper transcripts are filtered out due to low confidence (currently logs 🔇 Low confidence (x.xx): ...).

  • Extract the confidence value and the reason for rejection into a structured object or named return value (e.g. a LowConfidenceEvent dataclass or a dict {"confidence": float, "transcript": str}).
  • Emit or return this event so downstream code (reply engine, output layer) can react to it.
  • Do not change any TTS or UI behaviour yet — this subtask is purely about surfacing the data.

Files to touch

  • src/jarvis/listening/listener.py

Acceptance criteria

  • Low-confidence rejection produces a structured event/value (not just a log line)
  • The confidence score and raw transcript are both accessible from outside the listener
  • Existing behaviour is unchanged (nothing new is spoken or displayed yet)

Guida contributor