🚀 tts_transformer-ru-cv7_css10
这是来自fairseq S²的基于Transformer架构的文本转语音模型,可将文本转换为俄语语音。模型使用单男性语音,在Common Voice v7上预训练,并在CSS10上进行微调。
🚀 快速开始
本模型是基于fairseq S²的Transformer文本转语音模型,具备以下特点:
✨ 主要特性
- 语言支持:支持将俄语文本转换为语音。
- 语音类型:使用单男性语音,发音清晰。
- 训练数据:结合了Common Voice v7和CSS10数据集,保证了模型的泛化能力。
📦 安装指南
暂未提供具体安装步骤,可参考相关依赖库的安装说明。
💻 使用示例
基础用法
from fairseq.checkpoint_utils import load_model_ensemble_and_task_from_hf_hub
from fairseq.models.text_to_speech.hub_interface import TTSHubInterface
import IPython.display as ipd
models, cfg, task = load_model_ensemble_and_task_from_hf_hub(
"facebook/tts_transformer-ru-cv7_css10",
arg_overrides={"vocoder": "hifigan", "fp16": False}
)
model = models[0]
TTSHubInterface.update_cfg_with_data_cfg(cfg, task.data_cfg)
generator = task.build_generator(model, cfg)
text = "Здравствуйте, это пробный запуск."
sample = TTSHubInterface.get_model_input(task, text)
wav, rate = TTSHubInterface.get_prediction(task, model, generator, sample)
ipd.Audio(wav, rate=rate)
更多使用示例可参考 fairseq S²示例。
📚 详细文档
本模型基于 Transformer 架构,来自fairseq S² (论文/代码)。
模型信息
属性 |
详情 |
模型类型 |
Transformer文本转语音模型 |
训练数据 |
Common Voice v7、CSS10 |
📄 许可证
暂未提供相关许可证信息。
📚 引用
如果您在研究中使用了该模型,请引用以下论文:
@inproceedings{wang-etal-2021-fairseq,
title = "fairseq S{\^{}}2: A Scalable and Integrable Speech Synthesis Toolkit",
author = "Wang, Changhan and
Hsu, Wei-Ning and
Adi, Yossi and
Polyak, Adam and
Lee, Ann and
Chen, Peng-Jen and
Gu, Jiatao and
Pino, Juan",
booktitle = "Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing: System Demonstrations",
month = nov,
year = "2021",
address = "Online and Punta Cana, Dominican Republic",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2021.emnlp-demo.17",
doi = "10.18653/v1/2021.emnlp-demo.17",
pages = "143--152",
}