Rahbar: A Voice-First Urdu–English AI Tutor for Pakistan

A voice-first tutor for learners who mix Urdu and English when they speak. Rahbar answers from the course material in the same Urdu–English mix, highlights the matching part on a 3D diagram, and ends each unit with a quiz and a spoken viva. Demonstrated on Auto Electrician education.

Status
In progress
Programme
BS Computer Science
School
SEECS, NUST
Curriculum
TEVTA Punjab Auto Electrician

01Team

Esha Shabbir
Student · CMS 453839
Muhammad Hunain Ashraf
Student · CMS 463395
Arfa Abdul Nasir
Student · CMS 456634
Dr. Junaid Younas
Dr. Junaid Younas
Advisor
Dr. Muhammad Moazam Fraz
Dr. Muhammad Moazam Fraz
Co-Advisor

02Abstract

Rahbar is a voice-first AI tutor for Pakistani learners who mix Urdu and English when they speak. A learner listens to a spoken lesson and can interrupt with a question at any time. Rahbar answers from the course material in the same Urdu–English mix and highlights the related part on a 3D diagram. Each unit ends with a quiz and a spoken viva, and questions can also be sent by text or voice note on WhatsApp.

It is being built on the TEVTA Punjab Auto Electrician curriculum; the voice engine itself is not tied to one subject.

11.9%
word error rate from the tutor’s default speech recognition
88.5%
English technical terms preserved in transcription
~7.4 s
median time to first audio response
29/30
replies highlighting the correct 3D part
89.4 h
code-switched speech used for fine-tuning
19/26
answerable questions answered correctly, lesson-first retrieval

03Motivation and problem

Pakistani learners often ask technical questions as Urdu sentences full of English terms — for example, asking where relay terminal 85 is connected, with the technical nouns in English inside an Urdu sentence. This code-switching is hard for voice systems built for one language: on the UrduSpeech benchmark, Whisper-large-v3 has a 28.9% word error rate on Urdu but 53.2% on code-switched speech. Outside class, learners only have one-way videos, text platforms that need reading and typing, or general chatbots that may invent specifications.

Problem statement. The team did not find a tool that lets a learner speak a code-switched question and hear a correct, curriculum-based answer. This needs recognition that keeps English terms in English and Urdu in Urdu script; answers drawn only from the course material, declining when it is silent; speech with the technical terms intact; and replies fast enough for conversation. In auto electrical work, around batteries and live circuits, a confident wrong answer can cause harm, so grounding is required.

04Methodology

Overview of Rahbar: a question from the web platform or WhatsApp passes through speech recognition, a multilingual model, orchestration, and speech and visuals, all drawing on one domain knowledge base
Overview. A question from the web platform or WhatsApp passes through four stages of the voice engine, and every answer is drawn only from the subject’s knowledge base.
Detailed architecture with presentation, voice engine, knowledge and orchestration layers, the voice engine running six numbered stages
Detailed architecture. A spoken turn passes through the numbered stages one sentence at a time, so the learner hears the first sentence while the rest is still being generated. Only the knowledge layer changes when Rahbar moves to a new subject.

05Preliminary results

Small in-house tests on free T4 GPUs — 20 code-switched clips and 30 spoken questions from one speaker. These are starting baselines, not general findings.

Speech recognition
Whisper-large-v3 gave 52.3% WER and kept only 5.9% of English words. Urdu fine-tunes gave 26.8–32.5% WER and kept at most 28.2% of English terms. A Hindi–English Whisper kept 91.8% but wrote Urdu in Devanagari; the team’s converter cut its WER from 35.9% to 23.4%. In the tutor test this default gave 11.9% WER, kept 88.5% of terms, and took about 1.3 s per question.
Speech synthesis
Of nine configurations, OmniVoice had the lowest character error rate (0.097) and was the only one to keep English terms in every case.
Answering and retrieval
Across 26 answerable questions, having no course material produced 8 wrong answers. Lesson-first retrieval gave 19 correct and 1 wrong, and found the right lesson for 23 of 26, against 5 of 26 for whole-course search. Translating through English was about twice as slow and invented facts.
Response time
Median time to first audio was about 7.4 s — 3.3 s for the language model, 2.9 s for speech synthesis and 1.3 s for recognition.
3D highlighting
29 of 30 tagged replies pointed to the correct part, and no invalid part reached the screen.
WhatsApp
On a prototype using Meta’s test number, all 8 messages were received and every reply delivered.

06Expected outcomes

Deliverables.

Targets, fixed in advance.

Impact. Course-based help outside class hours without reading or typing.

07Sustainable Development Goals

08Publications

Nothing published, accepted or under review yet.

Depending on final results, the work may lead to: