A phoneme-level system that listens to a learner reading French aloud and tells whether each expected liaison was produced or omitted, with three applications built on top of it: an annotation and analysis platform, a pronunciation trainer, and a model comparison tool.
In French, a normally silent final consonant is sometimes pronounced when the next word starts with a vowel. This is a liaison. Some are required, some are optional, and some are forbidden. They are hard for children and second-language learners, and checking them by ear does not scale.
The /z/ between les and enfants is a required liaison. If the reader says /le ɑ̃fɑ̃/, the system marks it as omitted.
VL = realised liaisonXL = omitted liaisonThe system compares what the reader should say with what they actually said, at the level of phonemes.
Sentence or paragraph shown to the reader.
eSpeak NG phonemization plus liaison rules give the expected sequence.
A fine-tuned CTC model (WavLM) predicts the phonemes actually spoken.
Reference and prediction are aligned around each liaison site.
Each liaison is labelled realised (VL) or omitted (XL), with feedback.
Choose a reading to see how liaison sites are labelled after alignment.
Illustrative examples showing the output format. They are not recordings from the corpus.
The model is used in three tools, each for a different user: researchers, learners and ML engineers.
Annotation and analysis platform: browse the re-annotated corpus, analyse an audio file, inspect each liaison and benchmark models. Includes verified accounts, an activity log and team discussions.
ReactExpressPostgreSQLFFmpegPronunciation trainer: read a sentence, record yourself, get feedback on every liaison and follow your progress over time.
ReactNode.jsWavLMSQLiteLoad a short WAV file and compare the phoneme predictions of two fine-tuned checkpoints side by side. Metrics history is stored for reproducibility.
PythonPyTorchTransformersThree self-supervised speech models were fine-tuned with a CTC head for French phoneme recognition. Phoneme error rate (PER), lower is better.
| Model | First run (3 epochs) | Final run | Epochs | Final PER |
|---|---|---|---|---|
| WavLM Base → Base Plus | 15.69% | 7.247% | 10 | |
| Wav2Vec2 Base | 14.02% | 7.813% | 10 | |
| HuBERT Base LS-960 | 18.35% | 9.757% | 5.5 |
Bar length is relative to 10% PER. WavLM Base Plus was selected for audio feedback in the pronunciation trainer.
A single Docker Compose stack runs the three applications and a landing page. Each service exposes its own port and shares the Python speech pipeline.
Browser ├── :5173 → Nginx → React · Liaison et Moi │ └── /api → Node.js → exercises + SQLite │ └── Python → eSpeak NG / WavLM ├── :5181 → Express → React · LiaisonCheck + /api │ ├── PostgreSQL : annotations, analyses, accounts │ └── FFmpeg → Python → CTC → liaison comparison └── :7861 → Python comparator → WavLM checkpoints + SQLite metrics
This is a research project. The source code, the annotated corpus, the audio recordings and the trained checkpoints are private. This page presents the approach, the architecture and the results.