Swanada: Split-Encoder Capability-Routed Conformer CTC and Sub-30 MB On-Device Speech Recognition Across Twelve Scripts
Abstract
Client-side automatic speech recognition (ASR) across Indic and Classical scripts eliminates cloud transcription costs, network tail latency, and server-side audio retention, yet neural exports face four systems bottlenecks in browsers and mobile runtimes: (1) monolithic per-language Conformer checkpoints require ~177 MiB per script (> 2.1 GiB across 12 scripts), exhausting CacheStorage quotas; (2) static relative positional encoding tables embed 10.2-20.5 MB of FP32 constants while 1x1 Conv1d layers trigger slow or unsupported ConvInteger kernels in WebAssembly SIMD; (3) sliding-window CTC flickers on boundary tokens; and (4) mobile WebAudio pipelines suffer 44.1/48 kHz sample-rate mismatches and silent AudioWorklet stalls under iOS WKWebView. We present Swanada, an open-source 16 kHz streaming ASR system spanning Classical Sanskrit, Indian English, and ten Indian languages (sa, en, hi, kn, mr, bn, ta, te, ml, gu, pa, or) across browser WebAssembly, Node.js, and Python. Swanada pairs capability-routed shared INT8 Conformer encoders (a 17-layer 177.38 MiB Studio tier at d = 512 for desktop/servers and a distilled 14-layer 25.35 MiB Mobile tier at d = 256 for phones) with twelve hot-swappable 515.0 KiB native-script linear CTC heads (257 × 512), cutting 12-language storage by 11.6× (183.4 MiB) and 67.8× (31.39 MiB; 25.85 MiB first load). Runtime protobuf tail surgery exposes the shared representation in < 2 ms, while dynamic positional synthesis, MatMul pointwise convolutions, and post-quantization QInt8 head calibration preserve sub-30 MB accuracy. Across N = 480 held-out and N = 1,280 open public test clips (FLEURS, LibriSpeech, GLOBE, AMI, wild Sanskrit), Swanada achieves 5.43% held-out and 8.87% 12-language open CER on Studio (18.56% and 19.23% on Mobile) at 0.0097×-0.0264× RTF, with 30.6 ms median TTFT and 0.00% committed-prefix churn.
Create a lesson
Related papers
A Speech-LLM Framework for Enrollment-Free Wake-Word-Guided Target-Speaker Recognition in Complex Noisy Scenarios for Seamless Human-Machine Interaction
Shared title terminology · Yuxiang Mei, Dongxing Xu, Yanhua Long
RSE-TTS: Compact Text-to-Speech through Shared Text-Aware Reference Encoding and Generation
Shared title terminology · Ming Ma, Mingjie Chen, Yuanzhong Zheng et al.
Earlybird: Predictive Streaming Speech Recognition in 29M Parameters
Shared title terminology · Sahil Mahendrakar
DIY Customized Speech Recognition for a Person with Speech Disabilities
Shared title terminology · Paulo A. Condado, Fernando G. Lobo
Fuzzy-FedAvg: Server-Aware Client Selection for Federated Speech Emotion Recognition in Heterogeneous Environments
Shared title terminology · Farrukh Pervez, Siddique Latif, Moid Sandhu et al.
Route-DMD: Distribution Matching Distillation with Task-Routed Mechanism for Speech Foundation Models
Shared title terminology · Yanru Huo, Zhikang Niu, Wenming Tu et al.