Skip to main content
QUICK REVIEW

[Paper Review] Lost in Transcription: How Speech-to-Text Errors Derail Code Understanding

Jayant Havare, Ashish Mittal|arXiv (Cornell University)|Jan 20, 2026
Software Engineering ResearchComputer Science0 citations
TL;DR

The paper presents a multilingual, voice-based framework that transcribes code-related queries in Indic languages, refines the transcription with LLMs, and evaluates code understanding tasks; it shows substantial improvements from LLM-guided refinement across ASR and downstream code tasks.

ABSTRACT

Code understanding is a foundational capability in software engineering tools and developer workflows. However, most existing systems are designed for English-speaking users interacting via keyboards, which limits accessibility in multilingual and voice-first settings, particularly in regions like India. Voice-based interfaces offer a more inclusive modality, but spoken queries involving code present unique challenges due to the presence of non-standard English usage, domain-specific vocabulary, and custom identifiers such as variable and function names, often combined with code-mixed expressions. In this work, we develop a multilingual speech-driven framework for code understanding that accepts spoken queries in a user native language, transcribes them using Automatic Speech Recognition (ASR), applies code-aware ASR output refinement using Large Language Models (LLMs), and interfaces with code models to perform tasks such as code question answering and code retrieval through benchmarks such as CodeSearchNet, CoRNStack, and CodeQA. Focusing on four widely spoken Indic languages and English, we systematically characterize how transcription errors impact downstream task performance. We also identified key failure modes in ASR for code and demonstrated that LLM-guided refinement significantly improves performance across both transcription and code understanding stages. Our findings underscore the need for code-sensitive adaptations in speech interfaces and offer a practical solution for building robust, multilingual voice-driven programming tools.

Motivation & Objective

  • Motivate inclusive, multilingual voice-based code understanding to aid learners in regions with limited English proficiency.
  • Develop an end-to-end pipeline that starts from native-language speech and ends with code understanding outputs.
  • Characterize how transcription errors affect downstream code understanding tasks and identify ASR failure modes in code-related speech.
  • Demonstrate that LLM-guided refinement improves transcription fidelity and downstream code understanding.
  • Provide a thorough evaluation across multiple languages, datasets, and downstream tasks to inform design of code-aware speech interfaces.

Proposed method

  • Multilingual speech-driven framework that accepts queries in native languages, transcribes with ASR, refines transcripts with code-aware LLM prompting, and queries code models for QA and retrieval.
  • Code-aware transcription refinement using prompt-engineered GPT-4o-mini to restore misrecognized code terms, correct phonetic distortions, and disambiguate natural vs. programming language usage.
  • ASR models chosen per language (Whisper for English, indic-conformer for Indic languages) to better handle mixed-language, code-related speech.
  • Translation-aware preprocessing and TTS formatting to enable natural language outputs and audio feedback in multiple languages.
  • Evaluation on CodeSearchNet, CoRNStack, and CodeQA with Python, Java, PHP across Hindi, Gujarati, Tamil, Bengali, and English.
  • Downstream evaluation uses Recall@k and MRR to measure code retrieval performance and uses model-based evaluation for QA.

Experimental results

Research questions

  • RQ1RQ1: How do ASR transcription errors impact downstream code understanding tasks such as code question answering and retrieval?
  • RQ2RQ2: What are the common failure patterns introduced by ASR systems when transcribing code-related speech?
  • RQ3RQ3: How do ASR and LLM components perform in low-resource Indic languages (Gujarati, Tamil) compared to higher-resource languages?
  • RQ4RQ4: To what extent can Large Language Models refine ASR transcriptions of code-related queries and improve downstream task performance?

Key findings

  • State-of-the-art ASR often produces high error rates for multilingual, code-mixed queries, with WER frequently exceeding 50% for low-resource languages.
  • LLM-guided transcription refinement (GPT-4o-mini) substantially improves both transcription fidelity and downstream task performance across languages and datasets.
  • Average improvements from refinement: ~21% reduction in WER, ~29% reduction in PER, and ~33% reduction in WFED across evaluated settings.
  • Code-aware refinement improves downstream code tasks (QA and retrieval) by enabling more accurate code terms and structure to be preserved for reasoning models.
  • Cross-model robustness observed: refiner performance trends generalize when substituting GPT-4o-mini with Claude Sonnet 4.5 or Gemini-2.5 Pro, indicating broad applicability of the approach.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.