Voice: STTBackendSelector constant snake_case vs call-site camelCase mismatch #37

Closed
opened 2026-05-12 19:07:18 +00:00 by KofTwentyTwo · 0 comments
KofTwentyTwo commented 2026-05-12 19:07:18 +00:00 (Migrated from github.com)

Summary

STTBackendSelector exposes constants backendSpeechAnalyzer = "speech_analyzer" and backendWhisperKit = "whisperkit" (snake_case), but call sites in AppDelegate.swift:2028 use camelCase strings ("speechAnalyzer" / "whisperKit"). Documentation lie — public constants exist but are not used.

Evidence

  • File: App/AppDelegate.swift:2028 — camelCase strings
  • STTBackendSelector constants in snake_case

Recommended fix

Either rename the constants OR use them at call sites; pick one shape consistently. Documented as part of #29 (P0-2) fix.

Source

  • Audit: .planning/audit-2026-05-12/voice-audit.md (2026-05-12) — finding P2-1

Cross-references

  • Compounds: #29 (P0-2) — same root cause
## Summary `STTBackendSelector` exposes constants `backendSpeechAnalyzer = "speech_analyzer"` and `backendWhisperKit = "whisperkit"` (snake_case), but call sites in `AppDelegate.swift:2028` use camelCase strings (`"speechAnalyzer"` / `"whisperKit"`). Documentation lie — public constants exist but are not used. ## Evidence - File: `App/AppDelegate.swift:2028` — camelCase strings - `STTBackendSelector` constants in snake_case ## Recommended fix Either rename the constants OR use them at call sites; pick one shape consistently. Documented as part of #29 (P0-2) fix. ## Source - Audit: `.planning/audit-2026-05-12/voice-audit.md` (2026-05-12) — finding P2-1 ## Cross-references - Compounds: #29 (P0-2) — same root cause
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: KofTwentyTwo/Jarvis#37