Code-to-Speech: An Exploratory Study of AI Text-to-Speech for Source Code Readability

As multimodal interaction becomes central to digital learning, technical interfaces, such as eBooks and conversational agents, present unique accessibility challenges for users relying on the auditory modality. While modern Text-to-Speech (TTS) systems excel at rendering natural language, they often fail to convey the complex, structural syntax of source code, creating a significant barrier for blind and low-vision programmers. We frame the vocal rendering of source code as a cross-modal translation task, in which spatial and symbolic information visually encoded in code must be mapped into a linear auditory signal. This study explores "Code-to-Speech" (CTS) as a critical component of multimodal technical communication. We present a comparative evaluation of five leading AI-driven TTS engines (including ChatGPT, Gemini, and ElevenLabs) to determine their efficacy in rendering mixed-content (text and code) materials. Adopting a mixed-methods approach, we combine automated linguistic metrics (WER, BLEU, METEOR) with a human-centered qualitative assessment. Our findings reveal significant differences: ChatGPT and Gemini consistently achieved lower error rates, while Copilot omitted critical tokens. However, all systems struggle with essential structural cues such as indentation, pauses, and code comments. We also show that designed prompts improve intelligibility, particularly for novices. Our work establishes a benchmark for CTS and underscores the need for multimodal AI architectures that support inclusive technical interaction.

Link
https://www.semanticscholar.org/paper/f6a015cb417ec6436e5a6cbef0be835573c73f38
Found by
Semantic Scholar
Authors
Marco Cardia, Letizia Angileri, M. Buzzi, B. Leporini
Categories
benchmark, evaluation
Published
2026-10-05
Last seen by the radar
2026-10-05
Citations
0
Influential citations
0
Radar score
50.53 / 100 (how it is scored)
Why it scored so
Matched: benchmark, evaluat; Primary record: Semantic Scholar
Related links
https://doi.org/10.1145/3776574.3831223
Is this record right? If you made this work and something here is wrong or missing, tell us what to fix.

More records found by Semantic Scholar