live-translator-packs
收藏资源简介:
Live Translator离线模型包数据集是为Live Translator应用程序提供的一组按需离线模型资源,旨在支持离线环境下的多语言翻译、自动语音识别(ASR)和文本转语音(TTS)任务。该数据集包含英语(en)、希腊语(el)、西班牙语(es)等语言,并以语言对为单位组织下载:首次下载时会安装一个公共的common/组件(约284MB),包含共享的ASR(基于Whisper tiny int8和sherpa-onnx)、语音活动检测(VAD)、语音降噪、espeak-ng音素数据以及多语言TTS(Kokoro-82M int8覆盖多种语言);随后每个语言对(如en-el、en-es)单独下载,主要包括基于CTranslate2 int8的神经机器翻译(NMT)模型(源自Helsinki-NLP的OPUS-MT/Marian模型)以及针对Kokoro未覆盖语言(如希腊语)的Piper TTS模型。数据规模方面,例如en-el语言对约196MB,en-es约158MB,首次下载(common + en-el)总计约480MB。数据集适用于移动或离线场景下的实时语音翻译、语音识别和语音合成应用,所有模型均经过优化(如int8量化)以提高效率,并通过HuggingFace平台托管提供。
The Live Translator Offline Model Package Dataset is a set of on-demand offline model resources provided for the Live Translator application, aiming to support multilingual translation, automatic speech recognition (ASR) and text-to-speech (TTS) tasks in offline environments. The dataset covers languages including English (en), Greek (el), Spanish (es) and others, and is organized and downloaded in language pair units: a shared common/ component (approximately 284 MB) will be installed during the first download, which contains shared ASR models based on Whisper tiny int8 and sherpa-onnx, voice activity detection (VAD), speech denoising modules, espeak-ng phoneme data, and multilingual TTS (Kokoro-82M int8 covers multiple languages); subsequently, each language pair (e.g., en-el, en-es) can be downloaded separately, mainly including neural machine translation (NMT) models based on CTranslate2 int8 (derived from the OPUS-MT/Marian models from Helsinki-NLP) as well as Piper TTS models for languages not covered by Kokoro (such as Greek). In terms of dataset scale, for example, the en-el language pair is approximately 196 MB, the en-es language pair is approximately 158 MB, and the total size of the first download (common + en-el) is around 480 MB. This dataset is suitable for real-time speech translation, speech recognition and speech synthesis applications in mobile or offline scenarios. All models have been optimized (e.g., via int8 quantization) to enhance efficiency, and are hosted and distributed through the Hugging Face platform.
数据集概述
数据集名称: Live Translator Offline Model Packs
许可证: Apache-2.0
任务类别: 翻译、自动语音识别、文本转语音
语言: 英语、希腊语、西班牙语
标签: 离线翻译、CTranslate2、Whisper、Kokoro、Piper
数据集结构
数据集按语言对组织,首次下载时会安装共享的 common/ 文件夹,后续语言对仅下载各自特定文件。
公共文件(common/,仅下载一次,约 284 MB)
- 语音识别(ASR): Whisper tiny int8 多语言模型(sherpa-onnx 运行时)
whisper-encoder.onnxwhisper-decoder.onnxwhisper-tokens.txt
- 语音活动检测(VAD): Silero VAD (
silero_vad.onnx) - 语音降噪: GTCRN 语音降噪器 (
gtcrn.onnx) - 语音转文本(TTS)共享数据: espeak-ng 音素化数据 (
espeak-ng-data.tar) - 多语言语音合成(Kokoro-82M int8): 支持英语、西班牙语、法语、意大利语、葡萄牙语、印地语、日语、中文
model.onnxvoices.bintokens.txtlexicon-us-en.txt
语言对文件夹(<pair>/,按语言对下载)
- 神经机器翻译(NMT): CTranslate2 int8 模型,每个翻译方向一个子目录
nmt-<a>-<b>/(例如nmt-en-el/)nmt-<b>-<a>/(例如nmt-el-en/)- 包含文件:
model.bin、config.json、shared_vocabulary.json、source.spm、target.spm
- 文本转语音(TTS): 仅当语言不被 Kokoro 覆盖时存在(如希腊语使用 Piper)
tts-<lang>/(例如tts-el/)- 包含文件:
model.onnx、tokens.txt
运行时与处理流程
- ASR: 使用 sherpa-onnx 运行 Whisper tiny int8 模型(基于 ONNX Runtime)
- NMT: 使用 CTranslate2 int8 模型(源于 OPUS-MT / Marian),通过 Dart FFI 调用
libctranslate2。使用 SentencePiece 模型(.spm)进行分词,解码采用集束搜索(beam=5,无重复 n-gram,长度惩罚)。每次调用翻译一个句子 - TTS: 英语、西班牙语等使用 Kokoro int8(sherpa-onnx);希腊语使用 Piper medium
模型大小与下载量
| 项目 | 大小 |
|---|---|
| 公共文件(仅一次) | ~284 MB(ASR 98 MB,Kokoro 166 MB,espeak 17 MB,VAD/降噪 1 MB) |
| en-el 语言对 | ~196 MB(NMT 140 MB,Piper-el-medium 60 MB) |
| en-es 语言对 | ~158 MB(仅 NMT,英语和西班牙语语音来自公共 Kokoro) |
| 首次下载(公共 + en-el) | ~480 MB |
| 额外下载 en-es | +158 MB |
来源模型
| 模型包 | 来源 |
|---|---|
| nmt-en-el | Helsinki-NLP/opus-mt-en-el → CTranslate2 int8 |
| nmt-el-en | Helsinki-NLP/opus-mt-grk-en → CTranslate2 int8 |
| nmt-en-es | Helsinki-NLP/opus-mt-en-es → CTranslate2 int8 |
| nmt-es-en | Helsinki-NLP/opus-mt-es-en → CTranslate2 int8 |
| ASR | Whisper tiny int8(sherpa-onnx) |
| TTS(Kokoro) | csukuangfj/kokoro-int8-multi-lang-v1_1 |
| TTS(希腊语) | rhasspy/piper-voices el_GR-rapunzelina-medium |
数据文件可通过 https://huggingface.co/datasets/Gstam21/live-translator-packs/resolve/main/<路径> 获取。





