Files
2026-10-18 09:23:43 -06:00

77 lines
8.3 KiB
Markdown

# Structuring audio and video for AI
Audio and video need the same source, semantic, discovery, and governance layers as written content, plus reliable time references. A transcript makes speech readable; structured units and source citations make it retrievable and usable. Speech-to-text alone does not capture a slide, chart, visual demonstration, or information that was never spoken.
This document records the durable model and routes to tools. The executable implementation is [Structured Media Builder](https://projects.eddiesoehnel.com/adminprojects/structured-media-builder-OPEN). Keep its evolving scripts, schemas, skills, and examples there rather than duplicate them in this reference repository.
## Start with the recording and its evidence
Keep three original files together: the audio/video recording, its plain TXT transcript, and its timed VTT transcript. Preserve their bytes and names. Record a stable media ID and source hashes. A filename can suggest a title/date; an official session page may confirm those facts, people, and related resources. Preserve the provenance of each value.
Ask for useful missing metadata before interpreting the content: identity, people/affiliations, date/timezone, purpose/audience, priority retrieval questions, links, attribution, sharing limits, and known transcript problems. Accept partial answers and explicit unknowns. Do not invent public URLs, licenses, speaker identities, or review evidence to enable a local build.
Keep recording date, article publication date, upload date, and processing date distinct. A list of presenters does not identify which speaker produced every transcript cue. A publicly viewable video does not establish permission to redistribute or republish it.
## Materialize useful units
```text
Original media + TXT + VTT
-> metadata intake with provenance and unknowns
-> conceptual topic plan, grounded Q&A, navigation chapters
-> local draft assets and validation
-> explicit owner review and final approval
-> optional public companion publication or controlled delivery
-> optional API/MCP adapter or embeddings
```
| Layer | Useful representation | Key distinction |
| --- | --- | --- |
| Recording identity | Media manifest, people/credits, dates, language, rights, source hashes | Known facts versus candidates and unknowns |
| Timed source | VTT and normalized transcript cues with start/end seconds | Source words versus transcription corrections |
| Semantic units | Chunks with stable authored IDs, heading/topic path, order, source text, summaries, citations | Conceptual identity versus revision-sensitive cue locators |
| Reasoning | Q&A with exact quotes and the supporting chunk/cue references | Attributed speech and synthesis versus independent factual verification |
| Navigation | Human overview and chapters | Chapters need not equal chunk boundaries |
| Discovery | Media indexes, artifact routes, appropriate AudioObject/VideoObject metadata | Local references versus actual hosted URLs/capabilities |
| Lifecycle | Draft, approval evidence, final-package fingerprints, source history | Content approval versus publication, licensing, and fact-checking |
Use coherent topics rather than arbitrary token/time windows as the canonical chunk layer. A later retrieval adapter can add context windows without changing the underlying identities. Cover included cues explicitly; document any approved exclusions instead of silently dropping content.
Treat VTT as timing evidence and compare TXT against it. A mismatch needs review, not fabricated timecodes. Preserve STT errors in source; record corrections or normalization in a separately reviewed derivative. Changes to transcript segmentation can change cue IDs, so retain source fingerprints and versions with historical citations.
Answers can synthesize across chunks, but cite every material supporting section. Exact-substring checks establish that a quote appears in a cue; they cannot establish entailment, accurate numbers, speaker truthfulness, or causal validity. Keep sampling limits, measurement gaps, and conflicting definitions beside the claim they qualify.
## Review, final approval, and public delivery
Build the first local structure before asking the owner to approve it. Return a readable overview and a focused review record: unknown metadata, uncertain identities, unclear figures, transcript defects, missing visual evidence, and semantic decisions. The owner then reviews the concrete output.
Record explicit approval of a specific input/output state, preserve the reviewed draft, and verify source and interpretation fingerprints. If those inputs change, produce a new review cycle. Checksums support consistency and reproducibility; they are not authenticated signatures.
Publish only after rights, access, destination, and public URL decisions are resolved. Expose time-seek links only where the player actually supports them. Use known Schema.org properties rather than invented dates, licenses, thumbnails, or capabilities. Verify the hosted result independently; local checks do not prove playback, indexing, or citation by an AI.
## Tools and implementation routes
Use [Structured Media Builder](https://projects.eddiesoehnel.com/adminprojects/structured-media-builder-OPEN) for these concrete tools:
| Need | Media-specific implementation |
| --- | --- |
| Collect facts and ask missing questions | [Metadata intake skill](https://projects.eddiesoehnel.com/adminprojects/structured-media-builder-OPEN/src/branch/main/skills/media-intake/SKILL.md) and the human metadata checklist |
| Interpret the full transcript | [Structuring skill](https://projects.eddiesoehnel.com/adminprojects/structured-media-builder-OPEN/src/branch/main/skills/structure-media/SKILL.md) for conceptual chunks, cited Q&A, and chapters |
| Inspect/build/finalize/verify/search a recording folder | [Folder builder](https://projects.eddiesoehnel.com/adminprojects/structured-media-builder-OPEN/src/branch/main/scripts/folder_builder.py); tool details and prerequisites belong in that repo |
| Check fields and relationships | Media intake, semantic plan, timed export, and approval contracts under the builder's `schemas/` and validators |
| Produce a cleared companion site | The builder's optional public exporter; [Structured Website Builder](https://projects.eddiesoehnel.com/adminprojects/structured-website-builder-OPEN) remains the broader website implementation |
| Evaluate platform formats and source standards | The builder's [research notes](https://projects.eddiesoehnel.com/adminprojects/structured-media-builder-OPEN/src/branch/main/docs/research.md) and [architecture](https://projects.eddiesoehnel.com/adminprojects/structured-media-builder-OPEN/src/branch/main/docs/architecture.md) |
The user's existing STT tool supplies TXT/VTT; the builder does not bundle provider transcription. WebVTT, Schema.org media objects, Podcast Namespace transcript/chapter links, and supported platform text-track exports are interoperability options discussed in the implementation research, not guarantees that every host or AI consumes every artifact.
## Current implementation and future additions
The builder implements local intake, timed semantic assets, explicit final content approval, checksum verification, keyword retrieval, and an optional reviewed static exporter. Hosted API/MCP services, embeddings, platform synchronization, automatic source fact-checking, and visual analysis remain separate integrations.
For future APIs/MCP, start with bounded list/search/fetch operations over the same approved artifacts, returning source text, rights, IDs, and timed citations. A tool-definition JSON file is not a server. Restricted content needs access checks before discovery or snippets as well as full fetch.
For RAG, keep vectors downstream of canonical chunks. Store source/semantic versions, exact embedded-text hashes, model/version/dimensions, language, and access filters; propagate correction and removal. Evaluate realistic retrieval questions before selecting vector infrastructure. Similarity is not evidence that an answer is supported.
Add slide/OCR/frame evidence only as a separately identified, timestamped, reviewed source with its own provenance. Do not convert visual guesses or absence of speech into source facts.
See [the main roadmap](README.md), [CIS identity and lineage](chunk-intelligence-signature.md), and [control-plane boundaries](control-plane.md) for the surrounding system.