Component system - #56
Open
john- wants to merge 7 commits into
Open
Conversation
john-
force-pushed
the
component-system-pr
branch
from
August 1, 2026 21:43
c341bd6 to
ccaae9a
Compare
john-
force-pushed
the
component-system-pr
branch
from
August 2, 2026 15:02
ccaae9a to
23015cb
Compare
john-
force-pushed
the
component-system-pr
branch
from
August 9, 2026 20:55
23015cb to
8c61a70
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Title
feat: introduce modular component architecture, event dispatching, and Silero VADSummary
This PR refactors
ham2mon's audio processing pipeline into an extensible, decoupled Component Architecture (WavGatekeeperfor audio evaluation andTransmissionNotifierfor event listeners), centralizes WAV recording persistence withinScanner, and adds Silero VAD voice detection.Key Changes
Extensible Component Architecture (
apps/components/):BaseComponent: Foundation for components with strict lifecycles (start,stop, error recovery).ComponentManager: Orchestrates worker pools, isolates timeouts, and prevents single-component crashes from hanging the scanner loop.WavGatekeepercomponents:TfliteClassifierComponent: Refactored existing TFLite/LiteRT model runner into an isolated component process.SileroVadComponent: Added lightweight ONNX-based Silero Voice Activity Detection (~16MB runtime dependency).TransmissionNotifiercomponents:ActivityLoggerComponent: Dispatches kept transmission records to active channel activity loggers.Audio Recording Lifecycle Centralization:
Scanner._process_completed_transmission().@dataclass(frozen=True)TransmissionRecordfor cross-boundary payload safety.Configuration Alignment & Docs:
components:domain block parsing toMasterHam2MonConfigand CLI options.doc/components/available_components.md) and updatedREADME.mdanddoc/minimal.config.yaml.