该模型是 Meta AI 发布的 Omnilingual ASR 系列的一部分。原始套件包含:
| 模型名称 | 特性 | 参数量 | 下载大小 (FP32) | 推理显存¹ | 实时因子¹(相对速度)² |
|---|---|---|---|---|---|
omniASR_W2V_300M | SSL | 317_390_592 | 1.2 GiB | ||
omniASR_W2V_1B | SSL | 965_514_752 | 3.6 GiB | ||
omniASR_W2V_3B | SSL | 3_064_124_672 | 12.0 GiB | ||
omniASR_W2V_7B | SSL | 6_488_487_168 | 25.0 GiB | ||
omniASR_CTC_300M | ASR | 325_494_996 | 1.3 GiB | ~2 GiB | 0.001(96x) |
omniASR_CTC_1B | ASR | 975_065_300 | 3.7 GiB | ~3 GiB | 0.002(48x) |
omniASR_CTC_3B | ASR | 3_080_423_636 | 12.0 GiB | ~8 GiB | 0.003(32x) |
omniASR_CTC_7B | ASR | 6_504_786_132 | 25.0 GiB | ~15 GiB | 0.006(16x) |
omniASR_LLM_300M | 支持可选语言条件化的 ASR | 1_627_603_584 | 6.1 GiB | ~5 GiB | 0.090(~1x) |
omniASR_LLM_1B | 支持可选语言条件化的 ASR | 2_275_710_592 | 8.5 GiB | ~6 GiB | 0.091(~1x) |
omniASR_LLM_3B | 支持可选语言条件化的 ASR | 4_376_679_040 | 17.0 GiB | ~10 GiB | 0.093(~1x) |
omniASR_LLM_7B | 支持可选语言条件化的 ASR | 7_801_041_536 | 30.0 GiB | ~17 GiB | 0.092(~1x) |
omniASR_LLM_7B_ZS | 零样本 ASR | 7_810_900_608 | 30.0 GiB | ~20 GiB | 0.194(~0.5x) |
¹ (batch=1, audio_len=30s, BF16, A100)
² 相对于 omniASR_LLM_7B 的速度
该模型基于 fairseq2 开发,这是一个专注于研究的序列建模工具包。我们提供了一条参考推理流水线,支持跨平台运行,但音频处理功能需要 libsndfile(macOS:brew install libsndfile;Windows 可能需要额外的配置)。
# using pip
pip install omnilingual-asr
# using uv
uv add omnilingual-asrfrom omnilingual_asr.models.inference.pipeline import ASRInferencePipeline
pipeline = ASRInferencePipeline(model_card="omniASR_LLM_7B")
audio_files = ["/path/to/eng_audio1.flac", "/path/to/deu_audio2.wav"]
lang = ["eng_Latn", "deu_Latn"]
transcriptions = pipeline.transcribe(audio_files, lang=lang, batch_size=2)要查看完整的 1600+ 种支持语言列表,可以通过编程方式访问语言列表:
from omnilingual_asr.models.wav2vec2_llama.lang_ids import supported_langs
# Print all supported languages
print(f"Total supported languages: {len(supported_langs)}")
print(supported_langs)
# Check if a specific language is supported
if "eng_Latn" in supported_langs:
print("English (Latin script) is supported!")语言格式遵循 {language_code}_{script} 的形式,例如 eng_Latn - 英语(拉丁字母)、cmn_Hans - 普通话(简体字)……
若要在自己的数据上进一步微调已发布的检查点,请先参考我们的数据准备指南,然后按照微调配方指南进行操作。
BibTeX:
@misc{omnilingualasr2025,
title={{Omnilingual ASR}: Open-Source Multilingual Speech Recognition for 1600+ Languages},
author={{Omnilingual ASR Team} and Keren, Gil and Kozhevnikov, Artyom and Meng, Yen and Ropers, Christophe and Setzler, Matthew and Wang, Skyler and Adebara, Ife and Auli, Michael and Can, Balioglu and Chan, Kevin and Cheng, Chierh and Chuang, Joe and Droof, Caley and Duppenthaler, Mark and Duquenne, Paul-Ambroise and Erben, Alexander and Gao, Cynthia and Mejia Gonzalez, Gabriel and Lyu, Kehan and Miglani, Sagar and Pratap, Vineel and Sadagopan, Kaushik Ram and Saleem, Safiyyah and Turkatenko, Arina and Ventayol-Boada, Albert and Yong, Zheng-Xin and Chung, Yu-An and Maillard, Jean and Moritz, Rashel and Mourachko, Alexandre and Williamson, Mary and Yates, Shireen},
year={2025},
url={https://ai.meta.com/research/publications/omnilingual-asr-open-source-multilingual-speech-recognition-for-1600-languages/},
}facebook/omnilingual-asr-corpus 数据集采用 CC-BY-4.0。(GitHub)