How aria-karimi/wad works
WAD analyzes recorded lecture audio into time-aligned speech, acoustic and linguistic features, aggregates those features by window, then predicts attention levels for display. lectureAnalyzer.py coordinates the sampled extraction stages; run.py is the indexed application entry point, but its implementation was not excerpted, so its links to prediction and results are left unverified. Topic semantics and training are included as documented capabilities in the source contracts and indexed modules; their detailed runtime wiring was not sampled.
Main entry points: lectureAnalyzer.py Lecture coordinator · contracts.py Data contracts · run.py Application entry · index.html Results interface
Components 23
Lecture analysis
- Application entry
run.py - Lecture coordinator
lectureAnalyzer.py - Audio windowing
audio/audio_input.py - Speech transcription
nlp/transcription.py - Acoustic features
audio/acoustic.py - Linguistic features
nlp/linguistic.py - Semantic analysis
nlp/semantic.py
Feature processing
- Data contracts
shared/contracts.py - Feature aggregation
aggregation/aggregation.py - Synthetic feature feed
aggregation/try_aggregation.py
Training and prediction
- Model training
training/train.py - Training workflow
training/run.py - Training data prep
training/make_training_data.py - Attention prediction
prediction/predictor.py - Trained model
prediction/model.joblib
Results delivery
- Results store
api/results_api.py - FastAPI service
api/main.py - Results interface
frontend/index.html - Interface behavior
frontend/app.js - Feature display
frontend/features.js - Results display
frontend/results.js
Other components
- Lecture audio
- Lecture viewer
Connections 30
- Lecture audio → Application entry: provides audio
- Application entry → Lecture coordinator: starts analysis
run.py - Lecture coordinator → Audio windowing: reads windows
lectureAnalyzer.py - Lecture coordinator → Acoustic features: extracts features
lectureAnalyzer.py - Lecture coordinator → Speech transcription: transcribes windows
lectureAnalyzer.py - Lecture coordinator → Linguistic features: extracts features
lectureAnalyzer.py - Lecture coordinator → Semantic analysis: extracts features
lectureAnalyzer.py - Lecture coordinator → Feature aggregation: adds features
lectureAnalyzer.py - Audio windowing → Data contracts: creates windows
audio/audio_input.py - Speech transcription → Data contracts: creates segments
nlp/transcription.py - Acoustic features → Data contracts: creates features
audio/acoustic.py - Linguistic features → Data contracts: creates features
nlp/linguistic.py - Semantic analysis → Data contracts: uses contracts
nlp/semantic.py - Feature aggregation → Data contracts: combines windows
aggregation/aggregation.py - Lecture coordinator → Linguistic features: supplies transcript
lectureAnalyzer.py - Lecture coordinator → Semantic analysis: supplies transcript
lectureAnalyzer.py - Training workflow → Model training: trains model
training/run.py - Training workflow → Synthetic feature feed: uses synthetic feed
training/run.py - Training data prep → Lecture coordinator: generates training data
training/make_training_data.py - Model training → Feature aggregation: uses feature schema
training/train.py - Model training → Trained model: saves model
- Attention prediction → Trained model: loads model
prediction/predictor.py - Application entry → Attention prediction: requests predictions
run.py - Application entry → Results store: publishes results
run.py - FastAPI service → Results store: reads results
api/main.py - Lecture viewer → Results interface: views results
- Interface behavior → FastAPI service: requests updates
- Results interface → Interface behavior: loads behavior
- Results interface → Feature display: loads feature view
- Results interface → Results display: loads result view