isair/jarvis

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

Open

#373 建立於 2026年5月5日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)Python (201 fork)github user discovery
enhancementgood first issue

倉庫指標

Star
 (1,090 star)
PR 合併指標
 (平均合併 1天 12小時) (30 天內合併 19 個 PR)

描述

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)

貢獻者指南