← all chapters

chapter 08 · 2025–2027

the final year project

Scoring spoken English at the level of a single sound, and deciding what the learner should practice next.

SpeakRight is my final year project, built with two other people. I lead the backend and coordinate the team.

It is a Flutter app that scores spoken English twice over: once for the word, and once for the individual sounds inside it, at IPA phoneme level. The scoring comes from Azure’s pronunciation assessment service. The hard part is not the score.

The hard part is what to do with a few hundred scores.

SpeakRight — backend shape

Every attempt is stored, and each one carries its phoneme breakdown. From that, the system keeps a running average of how well this user pronounces this particular sound, and can name the three weakest phonemes across a hundred-sentence corpus.

SpeakRight — schema, from V1__init.sql

Then comes the interesting decision: what should the next sentence be?

Always practicing the weakest sound sounds correct and stops working. If the app only ever shows the worst phoneme, the learner never finds out what they are good at, and never touches the sentences they have not tried. So selection is not pure exploitation.

The first fifty to sixty attempts follow the weakness model. After that, exploration ramps in and unpractised sentences start appearing. It is a bandit problem: every sentence is a choice between using what you know and learning something new. UCB1 balances the two.

Building it taught me more about schema design than any of my coursework. Uniqueness, cascade behavior, indexes, and the difference between a value you store and a value you derive.