SpeechT5 (TTS task)
SpeechT5 model fine-tuned for speech synthesis (text-to-speech) on LibriTTS.
This model was introduced in SpeechT5: Unified-Modal Encoder-Decoder Pre-Training for Spoken Language Processing by Junyi Ao, Rui Wang, Long Zhou, Chengyi Wang, Shuo Ren, Yu Wu, Shujie Liu, Tom Ko, Qing Li, Yu Zhang, Zhihua Wei, Yao Qian, Jinyu Li, Furu Wei.
SpeechT5 was first released in this repository, original weights. The license used is MIT.
Model Description
Motivated by the success of T5 (Text-To-Text Transfer Transformer) in pre-trained natural language processing models, we propose a unified-modal SpeechT5 framework that explores the encoder-decoder pre-training for self-supervised speech/text representation learning. The SpeechT5 framework consists of a shared encoder-decoder network and six modal-specific (speech/text) pre/post-nets. After preprocessing the input speech/text through the pre-nets, the shared encoder-decoder network models the sequence-to-sequence transformation, and then the post-nets generate the output in the speech/text modality based on the output of the decoder.
Leveraging large-scale unlabeled speech and text data, we pre-train SpeechT5 to learn a unified-modal representation, hoping to improve the modeling capability for both speech and text. To align the textual and speech information into this unified semantic space, we propose a cross-modal vector quantization approach that randomly mixes up speech/text states with latent units as the interface between encoder and decoder.
Extensive evaluations show the superiority of the proposed SpeechT5 framework on a wide variety of spoken language processing tasks, including automatic speech recognition, speech synthesis, speech translation, voice conversion, speech enhancement, and speaker identification.
- Developed by: Junyi Ao, Rui Wang, Long Zhou, Chengyi Wang, Shuo Ren, Yu Wu, Shujie Liu, Tom Ko, Qing Li, Yu Zhang, Zhihua Wei, Yao Qian, Jinyu Li, Furu Wei.
- Shared by [optional]: Matthijs Hollemans
- Model type: text-to-speech
- Language(s) (NLP): [More Information Needed]
- License: MIT
- Finetuned from model [optional]: [More Information Needed]
Model Sources [optional]
- Repository: [https://github.com/microsoft/SpeechT5/]
- Paper: [https://arxiv.org/pdf/2110.07205.pdf]
- Blog Post: [https://huggingface.co/blog/speecht5]
- Demo: [https://huggingface.co/spaces/Matthijs/speecht5-tts-demo]
Uses
Direct Use
You can use this model for speech synthesis. See the model hub to look for fine-tuned versions on a task that interests you.
Downstream Use [optional]
[More Information Needed]
Out-of-Scope Use
[More Information Needed]
Bias, Risks, and Limitations
[More Information Needed]
Recommendations
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
How to Get Started With the Model
Use the code below to convert text into a mono 16 kHz speech waveform.
# Following pip packages need to be installed:<br /> # !pip install git+https://github.com/huggingface/transformers sentencepiece datasets<br /> from transformers import SpeechT5Processor, SpeechT5ForTextToSpeech, SpeechT5HifiGan<br /> from datasets import load_dataset<br /> import torch<br /> import soundfile as sf<br /> from datasets import load_dataset<br /> processor = SpeechT5Processor.from_pretrained("microsoft/speecht5_tts")<br /> model = SpeechT5ForTextToSpeech.from_pretrained("microsoft/speecht5_tts")<br /> vocoder = SpeechT5HifiGan.from_pretrained("microsoft/speecht5_hifigan")<br /> inputs = processor(text="Hello, my dog is cute", return_tensors="pt")<br /> # load xvector containing speaker's voice characteristics from a dataset<br /> embeddings_dataset = load_dataset("Matthijs/cmu-arctic-xvectors", split="validation")<br /> speaker_embeddings = torch.tensor(embeddings_dataset[7306]["xvector"]).unsqueeze(0)<br /> speech = model.generate_speech(inputs["input_ids"], speaker_embeddings, vocoder=vocoder)<br /> sf.write("speech.wav", speech.numpy(), samplerate=16000)<br />
Fine-tuning the Model
Refer to this Colab notebook for an example of how to fine-tune SpeechT5 for TTS on a different dataset or a new language.
Training Details
Training Data
LibriTTS
Training Procedure
Preprocessing [optional]
Leveraging large-scale unlabeled speech and text data, we pre-train SpeechT5 to learn a unified-modal representation, hoping to improve the modeling capability for both speech and text.
Training hyperparameters
- Precision: [More Information Needed]
- Regime: [More Information Needed]
Speeds, Sizes, Times [optional]
[More Information Needed]
Evaluation
Testing Data, Factors & Metrics
Testing Data
[More Information Needed]
Factors
[More Information Needed]
Metrics
[More Information Needed]
Results
[More Information Needed]
Summary
Model Examination [optional]
Extensive evaluations show the superiority of the proposed SpeechT5 framework on a wide variety of spoken language processing tasks, including automatic speech recognition, speech synthesis, speech translation, voice conversion, speech enhancement, and speaker identification.
Environmental Impact
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
- Hardware Type: [More Information Needed]
- Hours used: [More Information Needed]
- Cloud Provider: [More Information Needed]
- Compute Region: [More Information Needed]
- Carbon Emitted: [More Information Needed]
Technical Specifications [optional]
Model Architecture and Objective
The SpeechT5 framework consists of a shared encoder-decoder network and six modal-specific (speech/text) pre/post-nets.
After preprocessing the input speech/text through the pre-nets, the shared encoder-decoder network models the sequence-to-sequence transformation, and then the post-nets generate the output in the speech/text modality based on the output of the decoder.
Compute Infrastructure
[More Information Needed]
Hardware
[More Information Needed]
Software
[More Information Needed]
Citation [optional]
BibTeX:
@inproceedings{ao-etal-2022-speecht5,<br /> title = {{S}peech{T}5: Unified-Modal Encoder-Decoder Pre-Training for Spoken Language Processing},<br /> author = {Ao, Junyi and Wang, Rui and Zhou, Long and Wang, Chengyi and Ren, Shuo and Wu, Yu and Liu, Shujie and Ko, Tom and Li, Qing and Zhang, Yu and Wei, Zhihua and Qian, Yao and Li, Jinyu and Wei, Furu},<br /> booktitle = {Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},<br /> month = {May},<br /> year = {2022},<br /> pages={5723--5738},<br /> }<br />
Glossary [optional]
- text-to-speech to synthesize audio
More Information [optional]
[More Information Needed]
Model Card Authors [optional]
Disclaimer: The team releasing SpeechT5 did not write a model card for this model so this model card has been written by the Hugging Face team.
Model Card Contact
[More Information Needed]
收录说明:
1、本网页并非 microsoft/speecht5_tts 官网网址页面,此页面内容编录于互联网,只作展示之用;2、如果有与 microsoft/speecht5_tts 相关业务事宜,请访问其网站并获取联系方式;3、本站与 microsoft/speecht5_tts 无任何关系,对于 microsoft/speecht5_tts 网站中的信息,请用户谨慎辨识其真伪。4、本站收录 microsoft/speecht5_tts 时,此站内容访问正常,如遇跳转非法网站,有可能此网站被非法入侵或者已更换新网址,导致旧网址被非法使用,5、如果你是网站站长或者负责人,不想被收录请邮件删除:i-hu#Foxmail.com (#换@)
前往AI网址导航
2、本站所有文章、图片、资源等如果未标明原创,均为收集自互联网公开资源;分享的图片、资源、视频等,出镜模特均为成年女性正常写真内容,版权归原作者所有,仅作为个人学习、研究以及欣赏!如有涉及下载请24小时内删除;
3、如果您发现本站上有侵犯您的权益的作品,请与我们取得联系,我们会及时修改、删除并致以最深的歉意。邮箱: i-hu#(#换@)foxmail.com