How rashid-shocho/nexted_ielts_speaking works
This is a FastAPI IELTS speaking-evaluation service called by a Next.js server. Its main workflow accepts session audio, stores session and segment records, optionally archives clips, then evaluates each segment for speech presence, transcription, pronunciation, and fluency. The worker aggregates segment results, requests IELTS band scoring, and persists a report and training-sample records. The graph captures documented integrations and calls; several source modules were not excerpted, so uncertain connections are omitted.
Main entry points: nodes.py Evaluation nodes · sessions.py Session endpoints · evaluate.py Evaluation worker · database.py PostgreSQL
Components 20
API and sessions
- FastAPI app
app/main.py - Session endpoints
app/api/sessions.py - Data schemas
app/models/schemas.py
Audio evaluation
- Evaluation worker
app/workers/evaluate.py - Part workflow
app/graph/workflow.py - Evaluation nodes
app/graph/nodes.py - Speech detection
app/services/vad.py - Transcription
app/services/asr.py - Pronunciation analysis
app/services/pronunciation.py - GOP result parsing
app/services/pronunciation_parser.py - Fluency features
app/graph/nodes.py
Scoring and evidence
- Session scorer
app/services/llm_scorer.py - Band descriptors
app/services/band_descriptors.py
Persistence and integrations
- PostgreSQL
app/core/database.py - Audio archive
app/services/storage.py - Service settings
app/core/config.py
Other components
- Next.js server
- Groq LLM API
- RunPod pronunciation
- Cloudflare R2
Connections 21
- Next.js server → FastAPI app: calls API
app/main.py - FastAPI app → Session endpoints: mounts routes
app/main.py - Session endpoints → Data schemas: uses models
app/api/sessions.py - Session endpoints → PostgreSQL: reads and writes
app/api/sessions.py - Session endpoints → Audio archive: archives uploads
app/api/sessions.py - Session endpoints → Evaluation worker: schedules evaluation
app/api/sessions.py - Evaluation worker → Part workflow: invokes per segment
app/workers/evaluate.py - Part workflow → Evaluation nodes: wires nodes
app/graph/workflow.py - Evaluation nodes → Speech detection: detects speech
app/graph/nodes.py - Evaluation nodes → Transcription: transcribes audio
app/graph/nodes.py - Evaluation nodes → Pronunciation analysis: analyzes pronunciation
app/graph/nodes.py - Evaluation nodes → Fluency features: computes features
app/graph/nodes.py - Evaluation nodes → PostgreSQL: persists segment
app/graph/nodes.py - Pronunciation analysis → RunPod pronunciation: submits audio
app/services/pronunciation.py - Pronunciation analysis → GOP result parsing: parses GOP results
app/services/pronunciation.py - Evaluation worker → PostgreSQL: loads and saves results
app/workers/evaluate.py - Evaluation worker → Session scorer: scores session
app/workers/evaluate.py - Session scorer → Band descriptors: formats descriptors
app/services/llm_scorer.py - Session scorer → Groq LLM API: requests scoring
app/services/llm_scorer.py - Evaluation worker → PostgreSQL: stores training samples
app/workers/evaluate.py - Audio archive → Cloudflare R2: uploads clips
app/services/storage.py