python语音合成需要的库_Parakeet:基于PaddlePaddle的文本-语音合成工具包

Parakeet是一个灵活高效的开源文本到语音工具包,基于PaddlePaddle Fluid。它包含了Baidu Research等研究团队提出的最新TTS模型,如快速的WaveFlow模型。WaveFlow可在Nvidia V100 GPU上实现实时40倍的高速语音合成。Parakeet提供模型实现,标准化TTS流程,并支持多种预训练模型。
摘要由CSDN通过智能技术生成

Parakeet

Parakeet aims to provide a flexible, efficient and state-of-the-art text-to-speech toolkit for the open-source community. It is built on PaddlePaddle Fluid dynamic graph and includes many influential TTS models proposed by Baidu Research and other research groups.

logo.png

In particular, it features the latest WaveFlow model proposed by Baidu Research.

WaveFlow can synthesize 22.05 kHz high-fidelity speech around 40x faster than real-time on a Nvidia V100 GPU without engineered inference kernels, which is faster than WaveGlow and serveral orders of magnitude faster than WaveNet.

WaveFlow is a small-footprint flow-based model for raw audio. It has only 5.9M parameters, which is 15x smalller than WaveGlow (87.9M).

WaveFlow is directly trained with maximum likelihood without probability density distillation and auxiliary losses as used in Parallel WaveNet and ClariNet, which simplifies the training pipeline and reduces the cost of development.

Overview

In order to facilitate exploiting the existing TTS models directly and developing the new ones, Parakeet selects typical models and provides their reference implementations in PaddlePaddle. Further more, Parakeet abstracts the TTS pipeline and standardizes the procedure of data preprocessing, common modules sharing, model configuration, and the process of training and synthesis. The models supported here include Vocoders and end-to-end TTS models:

And more will be added in the future.

See the guide for details about how to build your own model and experiment in Parakeet.

Setup

Make sure the library libsndfile1 is installed, e.g., on Ubuntu.

sudo apt-get install libsndfile1

Install PaddlePaddle

See install for more details. This repo requires PaddlePaddle 1.8.2 or above.

Install Parakeet

git clone https://github.com/PaddlePaddle/Parakeet

cd Parakeet

pip install -e .

Install CMUdict for nltk

CMUdict from nltk is used to transform text into phonemes.

import nltk

nltk.download("punkt")

nltk.download("cmudict")

Examples

Entries to the introduction, and the launch of training and synthsis for different example models:

Pre-trained models and audio samples

Parakeet also releases some well-trained parameters for the example models, which can be accessed in the following tables. Each column of these tables lists resources for one model, including the url link to the pre-trained model, the dataset that the model is trained on, and synthesized audio samples based on the pre-trained model. Click each model name to download, then you can get the compressed package which contains the pre-trained model and the yaml config describing how the model is trained.

Vocoders

We provide the model checkpoints of WaveFlow with 64 and 128 residual channels, ClariNet and WaveNet.

Note: The input mel spectrogams are from validation dataset, which are not seen during training.

TTS models

We also provide checkpoints for different end-to-end TTS models, and present the synthesized audio examples for some randomly chosen famous quotes. The corresponding texts are displayed as follows.

Text

From

0

Life was like a box of chocolates, you never know what you're gonna get.

Forrest Gump

1

With great power there must come great responsibility.

Spider-Man

2

To be or not to be, that’s a question.

Hamlet

3

Death is just a part of life, something we're all destined to do.

Forrest Gump

4

Don’t argue with the people of strong determination, because they may change the fact!

William Shakespeare

Users have the option to use different vocoders to convert the linear/mel spectrogam to the raw audio in TTS models. Taking this into account, we are going to release the checkpoints for TTS models adapted to different vocoders, including the Griffin-Lim algorithm and some neural vocoders.

1) Griffin-Lim

2) Neural vocoders

under preparation

Copyright and License

Parakeet is provided under the Apache-2.0 license.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值