MB

mediaplural/bradan

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

1 stars 2 forks 质量 60 趋势 22MIT

课程消费者与同化器:获取、转录、导入任意格式、提炼和学习——使用 Insights、XP 进阶和 MCP 代理工具。本地优先,仅 stdlib 核心。

概览

指向任何课程(视频课程、网络研讨会录制、网页、PDF),它会收集、转录并提炼材料,形成结构化、关键词注释语料库,供你的代理、知识库和渲染者直接使用。 该仓库打包了一个课程导入流水线,旨在被采用和扩展——详见 CONTRIBUTING.md。可选集成(知识库、渲染器、关键词通道)在 HANDBOOK.md 中以薄适配器形式文档,而非内置。 每一条现实中的课程消费管道都会遇到同样的难题: 1. — 课程媒体存在于平台(YouTube、Vimeo、课程平台)、网页和PDF之后。工具:yt-dlp + stdlib fetch。2. — 带单词时间戳的文本→视频/音频。工具:本地Whisper类STT(Apple Silicon上的MLX Whisper;其他地方更快的whisper)。3. — 关键词、概念、次优句子种子、课程地图→转录记录。工具:本地评分通行证(仅stdlib,无API密钥)。4.

概述(AI 翻译)

课程中的一个大概念——准备好配合你的代理堆栈。 指向任何课程(视频课程、网络研讨会录制、网页、PDF),它会收集、转录并提炼材料,形成结构化、带关键词注释的语料库,供你的代理、知识库和渲染者直接使用。

该仓库打包了一个课程导入流水线,旨在被采纳和扩展——详见 CONTRIBUTING.md。可选集成(知识库、渲染器、关键词通道)在 HANDBOOK.md 中以薄适配器形式文档,而非内置。

为什么是这样的形状

每一条现实中的课程消费管道都会遇到同样的难题:

  1. 采集——课程媒体托管于平台(YouTube、Vimeo、课程平台)、网页和PDF之后。工具:yt-dlp + stdlib fetch。
  2. 转录 — 带字时间戳的文本→视频/音频。工具:本地Whisper类STT(苹果硅上的MLX Whisper;其他地方更快的whisper)。本地优先:无每分钟API税,内容不离开机器。
  3. 蒸馏 — 关键词、概念、次优句子种子、课程地图→转录。工具:本地评分通行证(仅标准库,无API密钥)。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

bradan — the course consumer & assimilator

A big concept from a course — ready to work with your agent stack. Point bradan at any course (video lessons, webinar recordings, web pages, PDFs), and it acquires, transcribes, and distills the material into a structured, keyword-annotated corpus that your agents, your knowledge base, and your renderers consume directly.

This repo packages a course-ingest pipeline, built to be adopted and extended — see CONTRIBUTING.md. Optional integrations (knowledge base, renderer, keyword lanes) are documented in HANDBOOK.md as thin adapters, not baked in.

Why this shape

Every real-world course-consumption pipeline hits the same walls:

  1. Acquisition — course media lives behind platforms (YouTube, Vimeo, course platforms), web pages, and PDFs. Tools: yt-dlp + stdlib fetch.
  2. Transcription — video/audio → word-timestamped text. Tool: local Whisper-class STT (MLX Whisper on Apple Silicon; faster-whisper elsewhere). Local-first: no per-minute API tax, no content leaving the machine.
  3. Distillation — transcripts → keywords, concepts, next-best-sentence seeds, course map. Tool: local scoring pass (stdlib only, no API key).
  4. Assimilation — the distilled corpus becomes usable knowledge: brain pages, research components, render scripts. These are adapters (see HANDBOOK.md), not core.

The core (this repo) is deliberately stdlib-only + one STT dependency. Everything else plugs in.

The pipeline

acquire (scrape.py)       → media + acquisition.json (url, sha256, tool, timestamp)
transcribe (transcribe.py) → .transcript.json + .txt + .srt + .sha256
distill (distill.py)      → concept-graph.json (typed nodes/edges) + synthesis.json (summary, takeaways,
                            caveats, decision notes, learning path) + course-map.md
                            (+ legacy keywords.json / concepts.json / next-best-seeds.json)
assimilate (adapters)     → knowledge page / keyword lanes / render script  [HANDBOOK.md]

Every stage is idempotent and provenance-anchored: the sha256 of the source media anchors the manifest, and the transcript fingerprints its source file. Re-runs are cheap; nothing silently loses its origin.

Install

bash install.sh            # creates an isolated venv (mlx-whisper on Apple Silicon, faster-whisper elsewhere)
export BRADAN_VENV_PYTHON=~/.hermes/venvs/bradan/bin/python

Alternative venv dirs are fine: bash install.sh ~/my-venv then pass --venv-python.

Usage

# 1. Acquire a lesson (video platform link or web page)
python3 scrape.py "https://www.youtube.com/watch?v=XXXX" --out-dir ./course/media --audio-only
python3 scrape.py "https://some-course-platform.com/lesson-page" --out-dir ./course/pages

# 2. Transcribe everything in a directory
python3 transcribe.py ./course/media/lesson-01.m4a --out-dir ./course/transcripts

# 3. Distill the corpus
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →