Phases 2-6: detection, visual timeline, backend hand-off, voiceprints
Phase 2 (call detection): CallDetector using CoreAudio per-process mic attribution (anarlog technique) — robust start+stop for Zoom/Teams/Signal/Meet, ignoring our own recording; auto-record toggle. Built; pending live multi-app confirmation by the user. Phase 3 (visual timeline foundation): AppAdapter protocol + SpeakerObservation, TimelineBuilder (hysteresis/overlap/self-merge/aliases), VisualTimeline (schema 1.1), TextRecognizer (Vision OCR), FrameSampler + GridCallAnalyzer (name OCR + saturated-highlight active-speaker attribution), SignalAdapter, VisualObserver (window capture; frames released, never saved; minimized->visual_gap, idle != gap). Synthetic-frame tested; adapter geometry pending real Signal fixtures + live VisualObserver validation. Phase 5 (backend hand-off): SparkControlClient (multipart label-merge, sequential, TLS-skip, 503 Retry-After/413), SessionPackager (chunk plan + WAV slice + timeline slice/rebase), TranscriptAssembler + SpeakersFile, TranscriptPipeline. Validated END-TO-END against the live backend (chunk -> label-merge -> speakers.json). Phase 6 (voiceprints): VoiceprintStore (known_voiceprints, persist named fingerprints, skip Unknown). Wired: 'Send to backend' button + transcript status, auto-send toggle (default off) + self-name setting. All adversarial-review findings fixed. App + XCTest suite build; tests pass.
This commit is contained in:
@@ -32,6 +32,21 @@ final class AppSettings: ObservableObject {
|
||||
didSet { defaults.set(adapterEnabled, forKey: Keys.adapterEnabled) }
|
||||
}
|
||||
|
||||
@Published var autoRecordOnDetection: Bool {
|
||||
didSet { defaults.set(autoRecordOnDetection, forKey: Keys.autoRecord) }
|
||||
}
|
||||
|
||||
/// The user's name, pre-seeded into the timeline for mic-VAD "self" spans.
|
||||
@Published var selfName: String {
|
||||
didSet { defaults.set(selfName, forKey: Keys.selfName) }
|
||||
}
|
||||
|
||||
/// Auto-send a finished recording to the backend for transcription. Default
|
||||
/// off while developing; flip on for hands-free transcripts.
|
||||
@Published var autoSendOnStop: Bool {
|
||||
didSet { defaults.set(autoSendOnStop, forKey: Keys.autoSend) }
|
||||
}
|
||||
|
||||
/// Output folder as a resolved file URL (expands a leading `~`).
|
||||
var outputFolderURL: URL {
|
||||
URL(fileURLWithPath: (outputFolderPath as NSString).expandingTildeInPath,
|
||||
@@ -55,6 +70,10 @@ final class AppSettings: ObservableObject {
|
||||
self.adapterEnabled = stored ?? Dictionary(
|
||||
uniqueKeysWithValues: Self.adapterKeys.map { ($0.key, true) }
|
||||
)
|
||||
|
||||
self.autoRecordOnDetection = defaults.object(forKey: Keys.autoRecord) as? Bool ?? true
|
||||
self.selfName = defaults.string(forKey: Keys.selfName) ?? "Me"
|
||||
self.autoSendOnStop = defaults.object(forKey: Keys.autoSend) as? Bool ?? false
|
||||
}
|
||||
|
||||
private enum Keys {
|
||||
@@ -62,5 +81,8 @@ final class AppSettings: ObservableObject {
|
||||
static let skipTLS = "skipTLSVerification"
|
||||
static let outputFolder = "outputFolderPath"
|
||||
static let adapterEnabled = "adapterEnabled"
|
||||
static let autoRecord = "autoRecordOnDetection"
|
||||
static let selfName = "selfName"
|
||||
static let autoSend = "autoSendOnStop"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user