Spaces:
Running
Running
Commit History
-
feat(SCRUM-34): 7-component pronunciation assessment
- Add POST /grade/pronunciation/practice endpoint - Implement DTW phoneme alignment with IPA feature distance (place/manner/voicing weighted: 0.5/0.35/0.15) - Add pronunciation_analysis/ package with 7 components: 1. individual_sounds: Wav2Vec2 + DTW alignment 2. word_stress: Parselmouth F0 per-syllable + librosa onset detection 3. sentence_stress: F0 peak mapping + isochrony rhythm check 4. linking: Rule-based C+V / gemination / intrusive / elision 5. intonation: F0 contour rising/falling/flat detection 6. chunking: Pause detection + speech rate WPM analysis 7. contracted_words: 64-entry contraction dictionary - Add weighted scoring by target_type: word (60/35/5%), phrase (35/20/25/10/10%), sentence (30/20/15/15/10/5/5%) - Add rate limiting: 30 req/min per IP sliding window - Add praat-parselmouth + dtw-python dependencies - Add 20 unit tests (all passing, mocked AI models) Closes SCRUM-34ca71644