Vaibhav Nakrani
← WorkLog 09 / 11Voice

Voice tutor

A student stuck on a question at night has nobody to ask. The app gives them a tutor they can talk to: hold a button, ask out loud, and hear an answer that teaches without giving the answer away.

Employer
AILA
Role
Senior AI engineer
When
June 2025 – 2026
Stack
LiveKit, WebRTC, speech and language models, Cloud Run
10 s → 2 slongest wait after the student stops talking
2languages: English and Saudi Arabic
2tutors: one for a quiz question, one for a lesson
298test conversations built from the real curriculum
How it works

There are two tutors. One helps with a single quiz question and is not allowed to give the answer away. The other teaches a lesson. Both work like a voice call: the student holds a button to talk, and the reply comes back as speech with the words on screen at the same pace. Pressing the button while the tutor is talking cuts it off, the way you would interrupt a person.

Behind it are three models in a row. One turns speech into text, one writes the reply, and one turns the reply into speech. The middle one follows a few plain rules: stay inside the lesson, expect the student's words to arrive a bit garbled, and never read symbols or formatting out loud.

Problems and fixes

Ten seconds of silence. After the student let go of the button, the tutor could wait a full ten seconds before answering, even when it already had their words. It now waits two seconds at most, and only if speech is still coming in.

In Arabic, the words on screen ran ahead of the voice. The on-screen text timed itself by counting syllables, in a way made for English. Arabic text raced ahead at about twice the speed and then froze. The text now takes its timing from the speech audio.

Pressing without speaking. An empty press was still sent off for a reply, and the app sat on “processing”. An empty press now gets a short spoken nudge and nothing else.

Scores that didn't say what broke. My first tests rated replies from one to five. A three out of five tells you nothing. I replaced them with 298 practice conversations built from the real curriculum, each reply marked against yes-or-no rules such as “did it give the answer away?”. A failure now points at the rule that broke. A second set of cases is kept aside, so the instructions can't be tuned to the test.

Working on something like this? Message me on LinkedIn → or email nakranivaibhav14@gmail.com