Document and verify multi-format audio discovery

This commit is contained in:
2026-12-02 03:25:20 +00:00
parent 9e2fc7313e
commit 0ec57fe2f4
12 changed files with 96 additions and 37 deletions

View File

@@ -21,7 +21,7 @@ Materialize canonical current-session inputs before processing stages.
- `inputs/glossaries/{party,campaign,setting,spells,combined}.yml`
- `inputs/players.yml`
- `inputs/party.yml`
- `audio/*.flac`
- prepared recordings in `audio/`
- optional `inputs/previous/manifest.json`
- optional `inputs/previous/artifacts/**`
- deterministic `manifest.inputs` entries (checksums + provenance)
@@ -34,9 +34,11 @@ Materialize canonical current-session inputs before processing stages.
envelope with checksums, sizes, and provenance. The combined record declares
its four individual input dependencies.
- enforces local audio vs S3 audio mutual exclusivity.
- rejects duplicate explicit local audio sources after resolution.
- uses `internal/audio` for read-only source discovery shared with inspection;
rejects duplicate explicit local audio sources after resolution.
- gives distinct local source paths with the same basename deterministic unique
prepared filenames so neither source is overwritten.
prepared filenames so neither source is overwritten; unresolved speaker-ID
collisions fail before audio materialization.
- downloads S3 audio into a temporary sibling before verifying and installing the prepared copy; its recorded identity comes from the same response as the bytes.
- writes effective autocorrection rules as a Seriatim envelope, with checksum,
size, and source provenance, including an empty list when no rules apply.
@@ -96,5 +98,5 @@ reusable; changed or unavailable evidence causes a normal prepare rerun.
`internal/stage/prepare_resume_test.go`,
`internal/stage/semantic_contracts_initial.go`,
`internal/stage/semantic_contracts_initial_test.go`,
`internal/audio/s3_audio_test.go`,
`internal/audio/discovery_test.go`, `internal/audio/s3_audio_test.go`,
`internal/previouscache/*_test.go`

View File

@@ -6,7 +6,7 @@ Generate raw per-speaker transcripts from prepared audio using WhisperX.
## Inputs
- `audio/*.flac` from `prepare`
- prepared recordings in `audio/` from `prepare`
## Outputs
@@ -15,7 +15,9 @@ Generate raw per-speaker transcripts from prepared audio using WhisperX.
## Key Behavior
- discovers prepared audio from manifest inputs or the canonical audio
directory and derives each speaker identity from its `.flac` filename.
directory. Manifest-selected files are authoritative; fallback scans use the
shared candidate filter. Speaker IDs remove the final filename extension;
duplicate IDs are rejected before dispatch.
- hashes the current audio and reconciles it with the versioned per-speaker
completion collection before starting HTTP work.
- reuses only records whose audio identity, observable WhisperX semantics,
@@ -83,7 +85,7 @@ reuse it normally.
- [WhisperX](../integrations/whisperx.md) owns HTTP, retry, timeout, and
cancellation semantics.
- [Configuration](../config.md#pipeline) owns concurrency and other
- [Configuration](../config.md) owns source selection, concurrency, and other
operator-selected values.
- Implementation and tests: `internal/stage/transcribe.go`,
`internal/stage/transcribe_reconciliation.go`,