Wire cf_voice modules when circuitforge-core#34 lands #9

Open
opened 2026-04-06 22:25:20 -07:00 by pyr0ball · 0 comments
Owner

Summary

The current server has ad hoc Whisper/Piper/Precise wiring. As circuitforge_core.voice matures, these should be replaced:

Current code Replace with
voice_server.py:214-234load_whisper_model(), transcribe_audio() cf_voice.io.STTBackend
voice_server.py:237-251generate_tts() (stub) cf_voice.io.TTSBackend (Piper)
voice_server.py:253-322 — Precise wake word wiring cf_voice.wakeword.WakeWordDetector
voice_server_enhanced.py:160-217SpeakerIdentification candidate for cf_voice.speaker.SpeakerIDBackend

Key note

HomeAssistantClient and IntentParser stay in Minerva — they are product-specific, not cf-core candidates.

The global mutable state (global whisper_model, etc.) must be refactored to injected instances before cf_voice modules can be wired in cleanly. Depends on FastAPI migration.

References

  • cf-dev review finding: Priority 3
  • circuitforge-core#34: cf_voice module
  • cf-orch#20: voice context service endpoint
## Summary The current server has ad hoc Whisper/Piper/Precise wiring. As `circuitforge_core.voice` matures, these should be replaced: | Current code | Replace with | |---|---| | `voice_server.py:214-234` — `load_whisper_model()`, `transcribe_audio()` | `cf_voice.io.STTBackend` | | `voice_server.py:237-251` — `generate_tts()` (stub) | `cf_voice.io.TTSBackend` (Piper) | | `voice_server.py:253-322` — Precise wake word wiring | `cf_voice.wakeword.WakeWordDetector` | | `voice_server_enhanced.py:160-217` — `SpeakerIdentification` | candidate for `cf_voice.speaker.SpeakerIDBackend` | ## Key note `HomeAssistantClient` and `IntentParser` stay in Minerva — they are product-specific, not cf-core candidates. The global mutable state (`global whisper_model`, etc.) must be refactored to injected instances before cf_voice modules can be wired in cleanly. Depends on FastAPI migration. ## References - cf-dev review finding: Priority 3 - circuitforge-core#34: cf_voice module - cf-orch#20: voice context service endpoint
pyr0ball added this to the cf-voice Integration milestone 2026-04-06 22:25:20 -07:00
pyr0ball added the
refactor
enhancement
labels 2026-04-06 22:25:20 -07:00
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Circuit-Forge/minerva#9
No description provided.