Oído:无需神经加速器的5美元微控制器上的开放词汇语音识别
Oído: Real-Time Open-Vocabulary Speech Recognition on a $5 Microcontroller without a Neural Accelerator
AI总结:
本研究提出无需神经加速器的Oído推理引擎,在ESP32-S3微控制器上实现开放词汇语音识别,其性能优于厂商自带识别器及Whisper等模型,代码与模型已开源。
摘要:
低成本微控制器上的语音识别在实际应用中仅限于关键词检测或固定命令列表。我们提出了Oído,一种完全在ESP32-S3(240 MHz双核Xtensa LX7,512 KB SRAM,8 MB PSRAM,16 MB闪存,无神经加速器)上运行开放词汇英语语音识别的推理引擎。Oído在芯片的SIMD指令上执行13M参数的Conformer-CTC模型,采用int8权重、逐帧动态int8激活和int8注意力,其调度程序围绕闪存和PSRAM带宽设计。在LibriSpeech测试集clean/other子集上,设备端算术的词错误率(WER)达到3.70%/8.23%,与全精度结果仅相差0.12个百分点;结合设备端1.3M参数语言模型时,WER为3.33%/7.15%;换能器头的WER为2.99%/6.67%,而int4变体可适配8.3 MB存储空间。这比同芯片上厂商自带的识别器减少了2.3-2.8倍的错误,且在笔记本电脑上的全精度Whisper和Moonshine tiny模型(包括真实噪声和混响场景)中错误更少。在物理开发板上测试,固件在单个核心上的运行时间为音频时长的1.97倍,转录结果与指令精确的模拟器完全一致:准确但尚未达到实时(4秒的命令在结束后约8.7秒完成转录)。双核调度在硬件上会产生错误,因此被禁用。流式变体在说话者讲话时显示部分文本,在3.6-10.6秒的片段(话语模式下为7.2-22.4秒)后4.1-11.1秒输出最终文本,WER为4.86%/11.03%;西班牙语模型比多语言Whisper tiny减少了34-60%的错误。代码和模型已开源。
英文摘要:
Speech recognition on low-cost microcontrollers is, in practice, limited to keyword spotting or a fixed list of commands. We present Oído, an inference engine and a family of models that run open-vocabulary English speech recognition entirely on an ESP32-S3 (240 MHz Xtensa LX7, 8 MB of PSRAM, 16 MB of flash, no neural accelerator) faster than real time on one core. Version 1 of this work ran a 13 M-parameter Conformer-CTC at 1.97x the duration of the audio. We measured on the board that the bound was memory traffic and per-frame cost, not arithmetic: external memory reads at 89 MB/s (PSRAM) and 32 MB/s (flash), and a streaming recognizer re-reads every weight for every chunk. Version 2 combines a model built for that memory system (80 ms frame stacking, a 64-channel front end, 12 or 16 blocks, int4 weights that mostly fit in PSRAM, fine-tuned from the version 1 model) with engine changes that overlap the weight stream with compute (an asynchronous data-cache preload), keep work buffers in SRAM and make the decoder cheap. On a physical board the streaming real-time factor falls from 1.77 to 0.54 (variant B) and 0.72 (variant A), the final text appears 259 ms (B) or 431 ms (A) after the end of speech with audio fed at real-time speed, and the host build and the firmware produce identical transcripts. Variant A reaches 7.1%/16.4% word error rate on LibriSpeech test-clean/test-other in streaming mode with 0.64 s chunks and the on-chip language model (4.6%/10.7% with full context). Code, models and the raw board measurements are released.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。