CodeVaani: A Multilingual, Voice-Based Code Learning Assistant

Jayant Havare, Srikanth Tamilselvam, Ashish Mittal, Shalaka Thorat, Soham Jadia, Varsha Apte, Ganesh RamakrishnanarXiv 2025 · DOI

Introduction

Programming education tools and AI assistants like GitHub Copilot or ChatGPT typically assume users are proficient in English and comfortable with keyboard-driven interaction. In multilingual regions like India, these assumptions create a "double barrier": students must simultaneously master a new technical language and a foreign natural language. CodeVaani is a multilingual, voice-driven assistant designed to bridge this gap, allowing students to learn programming in their native languages.

Student demographics and preferences for voice-supported programming.

As illustrated in Figure 1, the target student population is linguistically diverse, with Hindi, Marathi, and Bengali being prominent mother tongues. Crucially, over 54% of surveyed students expressed a preference for voice-based interaction over typing, highlighting a significant demand for inclusive, voice-first learning environments.

The Challenge of Code-Mixing

Standard Automatic Speech Recognition (ASR) systems often fail when users "code-mix"—interleaving native language with technical English terms. For example, a student asking about "ASCII" in Hindi might be transcribed as "ask key," leading the downstream AI to provide irrelevant answers. CodeVaani addresses this "Phonetic Ambiguity" by implementing a specialized refinement layer that understands the intersection of natural language and programming syntax.

Methodology and System Architecture

The system is integrated into Bodhitree, a Learning Management System (LMS) used at IIT Bombay. It utilizes a three-stage pipeline to process student queries:

  1. Speech Recognition (ASR): The system employs Whisper for English and Indic-Conformer (from AI4Bharat) for Indian languages to handle regional phonetic nuances.
  2. Code-Aware Transcription Refinement: To correct mangled technical terms, Gemma-27B (fine-tuned with Direct Preference Optimization) post-processes the text. This layer disambiguates between natural language and code (e.g., recognizing "underscore" as _).
  3. Query Response Generation: The refined text is passed to Codestral-22B, a model specialized for code, which generates contextually relevant answers delivered in both text and audio formats.
The CodeVaani system architecture showing the interaction between the student, backend, and GPU server.

The backend (Figure 3) is built on ReactJS, Django, and Celery for asynchronous task management, utilizing H100 GPUs to minimize processing latency.

Key Results and User Evaluation

A study involving 28 beginner programmers speaking languages including Hindi, Marathi, Gujarati, Tamil, and Telugu demonstrated the system's efficacy:

  • Accuracy: CodeVaani achieved a 75% response accuracy in real-world student queries.
  • User Satisfaction: Over 80% of participants rated their experience as "Satisfactory" or better.
  • Adoption Interest: Approximately 96% of participants indicated they would likely use the system in their actual programming courses if available.

Conclusion and Future Work

CodeVaani demonstrates that voice-based, multilingual support can significantly lower the entry barrier for programming education. While the current system handles single-turn interactions, future work will focus on supporting multi-turn conversations, reducing pipeline latency, and adding support for multilingual typed input to accommodate various learning environments.

Summary updated

BibTeX
@misc{havare2025codevaani,
  author = {Jayant Havare and Srikanth Tamilselvam and Ashish Mittal and Shalaka Thorat and Soham Jadia and Varsha Apte and Ganesh Ramakrishnan},
  title = {{CodeVaani: A Multilingual, Voice-Based Code Learning Assistant}},
  year = {2025},
  eprint = {2511.20654},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.20654},
}
Figure