How thongken/local works
This repository provides two Moodle plugins: Microlearning and PDF Quiz AI. Teachers supply audio, recordings, or PDFs, generate quizzes or lectures, review drafts, and save material into courses; students can reopen saved material and use quiz or lecture study support. The graph also captures browser-side speech processing, private narration generation, and PDF extraction/AI processing. Some PHP routes and service wiring were not excerpted; those connections are omitted or marked unverified rather than inferred from filenames.
Main entry points: app.js Audio and recording UI · index.php Study tools · server.py PDF processing API · create_quiz.php Content authoring
Components 25
Moodle workflows
- Study tools
microlearning/index.php - Content authoring
microlearning/classes/external/create_quiz.php - Saved study items
microlearning/classes/external/save_item.php - Study assistant
microlearning/classes/local/study_assistant.php - PDF and lecture workflows
pdfquiz/process_pdf.php - Practice progress
pdfquiz/classes/local/practice_progress.php
Microlearning browser
- Audio and recording UI
microlearning/frontend/src/app.js - Audio capture
microlearning/frontend/src/audio.js - Speech pipeline
microlearning/frontend/src/pipeline.js - Speech workers
microlearning/frontend/src/vad.worker.js - Quiz generation
microlearning/frontend/src/gemini.js - Lecture generation
microlearning/frontend/src/lecture.js - Content validation
microlearning/frontend/src/validator.js
Narration services
- Narration jobs
microlearning/classes/local/narration_service.php - Narration task
microlearning/classes/task/generate_narration.php - Speech client
microlearning/classes/local/speech_client.php - Speech engine API
microlearning/engine/server.py - WAV synthesis
microlearning/engine/synthesis.py
PDF Quiz services
- PDF service client
pdfquiz/classes/local/pdf_client.php - PDF processing API
pdfquiz/python_service/server.py - PDF extraction
pdfquiz/python_service/src/extractors/pdf_parser.py - Visual analysis
pdfquiz/python_service/src/core/vision_cv.py - Quiz and lecture AI
pdfquiz/python_service/src/ai_router.py
Other components
- Teacher
- Student
Connections 27
- Teacher → Study tools: opens tools
microlearning/index.php - Student → Study tools: opens study
microlearning/index.php - Study tools → Content authoring: offers authoring
microlearning/index.php - Study tools → PDF and lecture workflows: offers PDF tools
microlearning/index.php - Study tools → Study assistant: links study support
microlearning/index.php - Content authoring → Audio and recording UI: loads browser tool
- Audio and recording UI → Audio capture: captures audio
microlearning/frontend/src/app.js - Audio and recording UI → Speech pipeline: transcribes recording
microlearning/frontend/src/app.js - Speech pipeline → Speech workers: dispatches audio
microlearning/frontend/src/pipeline.js - Audio and recording UI → Quiz generation: generates quiz
microlearning/frontend/src/app.js - Audio and recording UI → Lecture generation: generates lecture
microlearning/frontend/src/app.js - Audio and recording UI → Content validation: validates content
microlearning/frontend/src/app.js - Audio and recording UI → Saved study items: saves item
microlearning/frontend/src/app.js - Content authoring → Saved study items: persists draft
- Narration jobs → Narration task: queues job
microlearning/classes/local/narration_service.php - Narration jobs → Speech client: prepares voice
microlearning/classes/local/narration_service.php - Narration task → Narration jobs: processes job
microlearning/classes/local/narration_service.php - Speech client → Speech engine API: calls speech API
- Speech engine API → WAV synthesis: synthesizes WAV
microlearning/engine/server.py - PDF and lecture workflows → PDF service client: requests processing
- PDF service client → PDF processing API: calls HTTP API
- PDF processing API → PDF extraction: extracts pages
pdfquiz/python_service/server.py - PDF processing API → Visual analysis: analyzes visuals
pdfquiz/python_service/server.py - PDF processing API → Quiz and lecture AI: generates content
pdfquiz/python_service/server.py - PDF and lecture workflows → Practice progress: supports practice
- Student → Practice progress: practices quizzes
- Student → Saved study items: reopens saved items