How alinice1998/munajjam-desktop works
Munajjam is a Quranic recitation alignment workstation: users load audio and Quran text in the desktop QA editor, select an alignment method, review word and breath timings, and can process batches. The desktop communicates with a local FastAPI server; alignment combines the documented Zipformer, neural breath segmentation, and (for hybrid mode) Wav2Vec2 refinement. The README also documents Quran text data, waveform editing/playback, batch manifests, localization, and progress reporting. Flutter internals and several server routes were not sampled, so those links reflect README claims rather than inspected calls.
Main entry points: qa_screen.dart QA workspace · munajjam_server.py REST job API · hybrid_pipeline.py Hybrid pipeline · aligner_api_service.dart Alignment API client
Components 18
Desktop workstation
- QA workspace
munajjam_desktop/lib/views/qa_screen.dart - Alignment controls
munajjam_desktop/lib/views/widgets/hybrid_alignment_modal.dart - Waveform editor
munajjam_desktop/lib/views/widgets/waveform_editor.dart - Karaoke player
munajjam_desktop/lib/views/widgets/karaoke_player.dart - Batch alignment
munajjam_desktop/lib/services/batch_alignment_service.dart - Audio services
munajjam_desktop/lib/services/audio_service.dart - Alignment API client
munajjam_desktop/lib/services/aligner_api_service.dart - Server lifecycle
munajjam_desktop/lib/core/server_manager.dart - Localization
munajjam_desktop/lib/core/localization/app_locale.dart - Batch item model
munajjam_desktop/lib/models/batch_alignment_item.dart
Local API
- REST job API
munajjam_server.py
Alignment engines
- Zipformer aligner
neural_aligner.py - Hybrid pipeline
hybrid_aligner/hybrid_pipeline.py - Breath segmenter
hybrid_aligner/recitation_segmenter.py - Forced aligner
hybrid_aligner/wav2vec2_aligner.py - GPU providers
hybrid_aligner/gpu_utils.py
Quran resources
- Quran text data
data/quran_hafsh.json
Other components
- Recitation editor
Connections 19
- Recitation editor → QA workspace: edits recitation
README.md - QA workspace → Alignment controls: configures alignment
README.md - QA workspace → Waveform editor: reviews timings
README.md - QA workspace → Karaoke player: plays audio
README.md - QA workspace → Alignment API client: submits jobs
README.md - Batch alignment → Alignment API client: requests alignment
README.md - Batch alignment → Batch item model: tracks items
- QA workspace → Audio services: loads audio
- Alignment API client → REST job API: calls REST API
README.md - Server lifecycle → REST job API: starts server
README.md - REST job API → Hybrid pipeline: dispatches alignment
README.md - REST job API → Zipformer aligner: dispatches classic mode
README.md - Hybrid pipeline → Breath segmenter: segments breaths
hybrid_aligner/hybrid_pipeline.py - Hybrid pipeline → Forced aligner: refines words
hybrid_aligner/hybrid_pipeline.py - Hybrid pipeline → Zipformer aligner: recognizes speech
hybrid_aligner/hybrid_pipeline.py - Breath segmenter → GPU providers: selects providers
hybrid_aligner/recitation_segmenter.py - Forced aligner → GPU providers: selects providers
hybrid_aligner/wav2vec2_aligner.py - REST job API → Quran text data: serves Quran data
munajjam_server.py - REST job API → Alignment API client: returns progress
README.md