# tennessine-shuo/jingshi-vocal architecture

> Architecture diagram of the GitHub repository tennessine-shuo/jingshi-vocal, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/tennessine-shuo/jingshi-vocal
- Repository: https://github.com/tennessine-shuo/jingshi-vocal

## Overview

This repository implements a classroom recording and teaching-evaluation system: classroom devices capture lessons, upload recordings and metadata, and a cloud-side pipeline processes eligible courses into teaching and focus reports. The graph preserves the documented recording, scheduling, voiceprint, processing, reporting, and operator-console capabilities. Some domain modules are sampled only through the SOURCE INDEX; relationships are shown only where excerpts or that index support them.

Main entry points: [`cloud/pipeline.py`](https://github.com/tennessine-shuo/jingshi-vocal/blob/main/cloud/pipeline.py) (Course pipeline), [`cloud/auto_pipeline.py`](https://github.com/tennessine-shuo/jingshi-vocal/blob/main/cloud/auto_pipeline.py) (Pipeline watcher), [`recorder/uploader.py`](https://github.com/tennessine-shuo/jingshi-vocal/blob/main/recorder/uploader.py) (COS uploader), [`cloud/cos_client.py`](https://github.com/tennessine-shuo/jingshi-vocal/blob/main/cloud/cos_client.py) (COS object client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_capture["Classroom capture"]
  node_microphones["Microphone devices<br/>[mic_devices.py]"]
  node_audio["PCM audio stream<br/>[audio_stream.py]"]
  node_recorder["Lesson recorder<br/>[recorder.py]"]
  node_vad["Voice activity detection<br/>[vad.py]"]
  node_uploader["COS uploader<br/>[uploader.py]"]
  node_cleanup["Local recording cleanup<br/>[local_cleanup.py]"]
end

subgraph group_cloud["Cloud processing"]
  node_auto["Pipeline watcher<br/>[auto_pipeline.py]"]
  node_pipeline["Course pipeline<br/>[pipeline.py]"]
  node_stages["Transcription and speaker stages<br/>[stages.py]"]
  node_cosclient["COS object client<br/>[cos_client.py]"]
end

subgraph group_domain["Course intelligence"]
  node_schedule["Feishu schedule matching<br/>[schedule_feishu.py]"]
  node_voiceprint["Local voiceprint engine"]
  node_focus["Focus analysis<br/>[focus.py]"]
  node_summary["Meeting summary<br/>[meeting_summary.py]"]
  node_prompts["Evaluation prompts<br/>[prompts.py]"]
  node_report["Teaching reports<br/>[report.py]"]
end

subgraph group_operations["Operations"]
  node_console["Control console<br/>[console.py]"]
  node_monitor["Status monitor<br/>[monitor_gui.py]"]
end

node_teacher(("Teacher / operator"))
node_cos[("Tencent COS")]

node_teacher -->|"operates"| node_console
node_console -->|"configures devices"| node_microphones
node_recorder -->|"uploads recordings"| node_uploader
node_uploader -->|"stores audio and metadata"| node_cos
node_monitor -->|"reads upload status"| node_uploader
node_auto -->|"creates store"| node_cosclient
node_auto -->|"runs course processing"| node_pipeline
node_auto -->|"configures schedule matching"| node_schedule
node_pipeline -->|"reads and writes objects"| node_cosclient
node_pipeline -->|"enriches course metadata"| node_schedule
node_pipeline -->|"runs processing stages"| node_stages
node_pipeline -->|"computes focus results"| node_focus
node_pipeline -->|"generates evaluation content"| node_summary
node_pipeline -->|"produces reports"| node_report
node_stages -->|"matches speakers"| node_voiceprint
node_summary -->|"uses prompts"| node_prompts
node_report -->|"uses prompts"| node_prompts
node_cosclient -->|"reads and writes objects"| node_cos

click node_console "https://github.com/tennessine-shuo/jingshi-vocal/blob/main/console.py"
click node_monitor "https://github.com/tennessine-shuo/jingshi-vocal/blob/main/monitor_gui.py"
click node_microphones "https://github.com/tennessine-shuo/jingshi-vocal/blob/main/mic_devices.py"
click node_audio "https://github.com/tennessine-shuo/jingshi-vocal/blob/main/recorder/audio_stream.py"
click node_recorder "https://github.com/tennessine-shuo/jingshi-vocal/blob/main/recorder/recorder.py"
click node_vad "https://github.com/tennessine-shuo/jingshi-vocal/blob/main/recorder/vad.py"
click node_uploader "https://github.com/tennessine-shuo/jingshi-vocal/blob/main/recorder/uploader.py"
click node_cleanup "https://github.com/tennessine-shuo/jingshi-vocal/blob/main/recorder/local_cleanup.py"
click node_schedule "https://github.com/tennessine-shuo/jingshi-vocal/blob/main/cloud/schedule_feishu.py"
click node_auto "https://github.com/tennessine-shuo/jingshi-vocal/blob/main/cloud/auto_pipeline.py"
click node_pipeline "https://github.com/tennessine-shuo/jingshi-vocal/blob/main/cloud/pipeline.py"
click node_stages "https://github.com/tennessine-shuo/jingshi-vocal/blob/main/cloud/stages.py"
click node_voiceprint "https://github.com/tennessine-shuo/jingshi-vocal/blob/main/cloud/voiceprint_local.py"
click node_focus "https://github.com/tennessine-shuo/jingshi-vocal/blob/main/cloud/focus.py"
click node_summary "https://github.com/tennessine-shuo/jingshi-vocal/blob/main/cloud/meeting_summary.py"
click node_prompts "https://github.com/tennessine-shuo/jingshi-vocal/blob/main/cloud/prompts.py"
click node_report "https://github.com/tennessine-shuo/jingshi-vocal/blob/main/cloud/report.py"
click node_cosclient "https://github.com/tennessine-shuo/jingshi-vocal/blob/main/cloud/cos_client.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_microphones,node_audio,node_recorder,node_vad,node_uploader,node_cleanup toneBlue
class node_auto,node_pipeline,node_stages,node_cosclient,node_cos toneAmber
class node_schedule,node_voiceprint,node_focus,node_summary,node_prompts,node_report toneMint
class node_console,node_monitor toneRose
class node_teacher toneIndigo
```

## Components

### Classroom capture

- [Microphone devices](https://github.com/tennessine-shuo/jingshi-vocal/blob/main/mic_devices.py): `mic_devices.py`
- [PCM audio stream](https://github.com/tennessine-shuo/jingshi-vocal/blob/main/recorder/audio_stream.py): `recorder/audio_stream.py`
- [Lesson recorder](https://github.com/tennessine-shuo/jingshi-vocal/blob/main/recorder/recorder.py): `recorder/recorder.py`
- [Voice activity detection](https://github.com/tennessine-shuo/jingshi-vocal/blob/main/recorder/vad.py): `recorder/vad.py`
- [COS uploader](https://github.com/tennessine-shuo/jingshi-vocal/blob/main/recorder/uploader.py): `recorder/uploader.py`
- [Local recording cleanup](https://github.com/tennessine-shuo/jingshi-vocal/blob/main/recorder/local_cleanup.py): `recorder/local_cleanup.py`

### Cloud processing

- [Pipeline watcher](https://github.com/tennessine-shuo/jingshi-vocal/blob/main/cloud/auto_pipeline.py): `cloud/auto_pipeline.py`
- [Course pipeline](https://github.com/tennessine-shuo/jingshi-vocal/blob/main/cloud/pipeline.py): `cloud/pipeline.py`
- [Transcription and speaker stages](https://github.com/tennessine-shuo/jingshi-vocal/blob/main/cloud/stages.py): `cloud/stages.py`
- [COS object client](https://github.com/tennessine-shuo/jingshi-vocal/blob/main/cloud/cos_client.py): `cloud/cos_client.py`

### Course intelligence

- [Feishu schedule matching](https://github.com/tennessine-shuo/jingshi-vocal/blob/main/cloud/schedule_feishu.py): `cloud/schedule_feishu.py`
- [Local voiceprint engine](https://github.com/tennessine-shuo/jingshi-vocal/blob/main/cloud/voiceprint_local.py): `cloud/voiceprint_local.py`
- [Focus analysis](https://github.com/tennessine-shuo/jingshi-vocal/blob/main/cloud/focus.py): `cloud/focus.py`
- [Meeting summary](https://github.com/tennessine-shuo/jingshi-vocal/blob/main/cloud/meeting_summary.py): `cloud/meeting_summary.py`
- [Evaluation prompts](https://github.com/tennessine-shuo/jingshi-vocal/blob/main/cloud/prompts.py): `cloud/prompts.py`
- [Teaching reports](https://github.com/tennessine-shuo/jingshi-vocal/blob/main/cloud/report.py): `cloud/report.py`

### Operations

- [Control console](https://github.com/tennessine-shuo/jingshi-vocal/blob/main/console.py): `console.py`
- [Status monitor](https://github.com/tennessine-shuo/jingshi-vocal/blob/main/monitor_gui.py): `monitor_gui.py`

### Other components

- **Teacher / operator**
- **Tencent COS**

## Connections

- Teacher / operator → Control console: operates (evidence: `console.py`)
- Control console → Microphone devices: configures devices (evidence: `console.py`)
- Lesson recorder → COS uploader: uploads recordings (evidence: `recorder/recorder.py`)
- COS uploader → Tencent COS: stores audio and metadata (evidence: `recorder/uploader.py`)
- Status monitor → COS uploader: reads upload status (evidence: `monitor_gui.py`)
- Pipeline watcher → COS object client: creates store (evidence: `cloud/auto_pipeline.py`)
- Pipeline watcher → Course pipeline: runs course processing (evidence: `cloud/auto_pipeline.py`)
- Pipeline watcher → Feishu schedule matching: configures schedule matching (evidence: `cloud/auto_pipeline.py`)
- Course pipeline → COS object client: reads and writes objects (evidence: `cloud/pipeline.py`)
- Course pipeline → Feishu schedule matching: enriches course metadata (evidence: `cloud/pipeline.py`)
- Course pipeline → Transcription and speaker stages: runs processing stages (evidence: `cloud/pipeline.py`)
- Course pipeline → Focus analysis: computes focus results (evidence: `cloud/pipeline.py`)
- Course pipeline → Meeting summary: generates evaluation content (evidence: `cloud/pipeline.py`)
- Course pipeline → Teaching reports: produces reports (evidence: `cloud/pipeline.py`)
- Transcription and speaker stages → Local voiceprint engine: matches speakers (evidence: `cloud/stages.py`)
- Meeting summary → Evaluation prompts: uses prompts (evidence: `cloud/meeting_summary.py`)
- Teaching reports → Evaluation prompts: uses prompts (evidence: `cloud/report.py`)
- COS object client → Tencent COS: reads and writes objects (evidence: `cloud/cos_client.py`)
