AI/ML · LLM evaluation · 3 min read

Speech Grading That Arrives During the Call

Five stages grade pronunciation, language, communication and fluency, then write coaching tips, while the learner is still talking.

At Eklan, I designed a five-stage speech grading pipeline that scores a learner's spoken English on pronunciation, language, communication and fluency, writes coaching tips, and grades each turn in the background while the call is still running.

My role
I designed the grading pipeline and built it end to end: the five stages, grading during the call, retries, locks and model fallback, the stored status for every part, the calibration check and the staged results page.
Context
Founding AI Engineer, Eklan
Period
Sep 2026 – present
Status
Eklan · Founding AI Engineer
Platform
Background grading in a Next.js web app

Eklan · Founding AI Engineer

  • During the callgrading starts while the call is still running, so the report builds up part by part
  • 1.5median points between two gradings of the same session (out of 100)
  • 5grading stages, each with its own status and error reason
  • TypeScript
  • Gemini Flash
  • SpeechAce
  • Next.js
  • MongoDB

Roles: AI/ML Engineer · Software Engineer.

The problem

After a voice roleplay, a learner wants to know how they did. The old flow graded the whole session only after the call ended, so learners stared at a loading screen, and one failed step could leave the whole report empty. The feedback also had to be trustworthy: a grade that changes every time you ask is worse than no grade.

Who it was for

Nurses and clinicians practising spoken English, who need specific, repeatable feedback on pronunciation, language, communication and fluency, and the tutors who review that feedback with them.

My role

I designed the grading pipeline and built it end to end: the five stages, grading during the call, retries, locks and model fallback, the stored status for every part, the calibration check and the staged results page.

What I built

  • Verbatim transcription

    The first stage writes down exactly what the learner said, fillers and false starts included, because fluency and pronunciation feedback is useless on a cleaned-up transcript.

  • Pronunciation and language in parallel

    SpeechAce scores pronunciation word by word while an LLM scores language and communication against a rubric. The two run side by side, not one after the other.

  • Fluency computed in code

    Words per minute, fillers per 100 words, speaking time and response onset are counted in code, not judged by a model, so the same audio always gets the same fluency score.

  • Coaching from the scores

    A final LLM stage writes tips from the scored parts. Learners get a report with scores, tips, model audio, a "practise it" recording and a trend across attempts; tutors can review and override a score.

  • Every part reports on itself

    Each part stores its status, attempts, error reason and timing on the session, so a partial failure shows up as one missing part with a reason instead of a blank report.

  • Mistakes that feed practice

    Weaknesses from grading and from tutors' notes go into one record per learner, which drill generation reads back so practice targets that learner's actual mistakes.

The fluency score blends the AI coach’s voice notes and the roleplay results 60/40, so it reflects how a learner speaks in both settings.

Locks stop two workers from grading the same turn twice, and retries are limited so a stubborn clip can’t hold up the rest of the report.

How it works

Each learner turn is transcribed word for word, then scored for pronunciation and, in parallel, for language and communication. Fluency is computed in code, and an LLM writes coaching tips from all of the scores. While the call is running, Next.js grades each finished turn in the background, and the results page fills in part by part.

Each learner turn is transcribed word for word, scored for pronunciation and for language and communication in parallel, given a fluency score computed in code, and coached by an LLM; parts land on the results page one by one. Relationships: Learner turn to Verbatim transcription; Verbatim transcription to Pronunciation; Verbatim transcription to Language and communication (in parallel); Pronunciation to Fluency (scores); Language and communication to Fluency; Fluency to Coaching; Coaching to Staged report.

Decisions that mattered

  • I chose grade each turn in the background while the call is still running over grading the whole session after the learner hangs up because most of the work can be done before the call ends, so the learner waits for the last turn instead of for the whole session

  • I chose fluency measured in code over asking the model for a fluency score because pace and filler counts are arithmetic; computing them makes the score repeatable and leaves the model only the judgements that need it

  • I chose a narrow fallback plus a stored error reason over guessing at a failure I couldn't reproduce because a rare error deserved a safe path for the learner today and enough evidence to fix it properly the next time it happened

Hard problems I solved

  • ProblemThe transcription model accepts only about 10 requests a minute, and a busy session sends many more.

    FixTranscription calls run 8 at a time, and a rate-limit error falls back to the grading model instead of failing the turn.

  • ProblemOne stage occasionally failed with an invalid-argument error that I could not reproduce after many tries.

    FixI shipped a narrow fallback that retries that clip once on a second model, and stored a short error reason for every part, so the next failure would be visible instead of guessed.

  • ProblemAn LLM grader is only useful if it gives the same session roughly the same score twice.

    FixI graded 8 real sessions twice and compared them. The median difference was 1.5 points out of 100 and the largest was 6, which made the scores fit for showing learners.

Tech stack

Models and speech
  • Gemini Flash: Rubric scoring, coaching and the transcription fallback
  • SpeechAce: Word-level pronunciation scores
Interface
  • React: Staged results page and tutor review views

Outcome

Grading during the call means the report no longer waits for the end of the call, and the results page fills in part by part as each stage finishes. If one stage hits a rate limit, the pipeline falls back to a second model and records the reason, so the learner still sees every part that did finish. A re-grading consistency check then compares two gradings of the same session, which is how I decided the scores were steady enough to show learners.

Grading the same 8 sessions twice gave a median difference of 1.5 points out of 100, with a largest difference of 6.

What I learned

A pipeline is only as useful as its worst failure. Make each part report on itself.

Splitting grading into parts that each record their own status changed what failure looks like. A rate limit or an odd clip now costs the learner one part of the report for a while, with a reason attached, instead of the whole report. The calibration check mattered just as much: it turned “the model seems consistent” into a number I could stand behind.

What I’d do next

Repeat the calibration on a larger set of sessions and track it over time, so a prompt or model change that makes grading less consistent is caught before release.