Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tts] Add male voice for tts #2660

Merged
merged 30 commits into from
Nov 17, 2022
Merged
Show file tree
Hide file tree
Changes from 29 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
f58de66
updata readme, test=doc
Aug 26, 2022
0251c38
Merge branch 'PaddlePaddle:develop' into develop
lym0302 Aug 29, 2022
034aef5
Merge branch 'PaddlePaddle:develop' into develop
lym0302 Sep 6, 2022
ccce14f
Merge branch 'PaddlePaddle:develop' into develop
lym0302 Sep 14, 2022
2244b53
Merge branch 'PaddlePaddle:develop' into develop
lym0302 Sep 15, 2022
5c197e7
Merge branch 'PaddlePaddle:develop' into develop
lym0302 Sep 20, 2022
8e5e265
update yaml and readme, test=tts
Sep 20, 2022
6b4cccb
Merge branch 'PaddlePaddle:develop' into develop
lym0302 Sep 20, 2022
697e1f7
Merge branch 'PaddlePaddle:develop' into develop
lym0302 Sep 26, 2022
f6cf18e
fix batch_size, test=tts
Sep 26, 2022
20ccc05
Merge branch 'PaddlePaddle:develop' into develop
lym0302 Sep 27, 2022
c737dab
Merge branch 'PaddlePaddle:develop' into develop
lym0302 Sep 30, 2022
8dc3c98
Merge branch 'PaddlePaddle:develop' into develop
lym0302 Oct 8, 2022
fa434cb
Merge branch 'PaddlePaddle:develop' into develop
lym0302 Oct 12, 2022
2b9d7c8
Merge branch 'PaddlePaddle:develop' into develop
lym0302 Oct 17, 2022
8164d86
Merge branch 'PaddlePaddle:develop' into develop
lym0302 Oct 20, 2022
8964190
Merge branch 'PaddlePaddle:develop' into develop
lym0302 Oct 27, 2022
06383d5
Merge branch 'PaddlePaddle:develop' into develop
lym0302 Oct 27, 2022
2a978bc
Merge branch 'PaddlePaddle:develop' into develop
lym0302 Nov 1, 2022
664aed4
Merge branch 'PaddlePaddle:develop' into develop
lym0302 Nov 2, 2022
003ff8f
update readme, test=doc
Nov 4, 2022
d3eb589
Merge branch 'develop' of https://github.com/lym0302/PaddleSpeech int…
Nov 4, 2022
dc71ad0
chmod, test=tts
Nov 14, 2022
8457159
Merge branch 'develop' of https://github.com/lym0302/PaddleSpeech int…
Nov 14, 2022
eef87bb
Merge branch 'PaddlePaddle:develop' into develop
lym0302 Nov 14, 2022
2e5af47
Merge branch 'PaddlePaddle:develop' into develop
lym0302 Nov 14, 2022
5c67d95
Merge branch 'develop' of https://github.com/lym0302/PaddleSpeech int…
Nov 14, 2022
4d8ef8c
Merge branch 'PaddlePaddle:develop' into develop
lym0302 Nov 16, 2022
d243f5f
add male voice for tts, test=tts
Nov 16, 2022
fdf0087
fix version, test=tts
Nov 17, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ Via the easy-to-use, efficient, flexible and scalable implementation, our vision
- 🧩 *Cascaded models application*: as an extension of the typical traditional audio tasks, we combine the workflows of the aforementioned tasks with other fields like Natural language processing (NLP) and Computer Vision (CV).

### Recent Update
- 🎉 2022.11.17: [Add male voice for TTS](https://github.com/PaddlePaddle/PaddleSpeech/pull/2660)
yt605155624 marked this conversation as resolved.
Show resolved Hide resolved
- 🔥 2022.11.07: [U2/U2++ C++ High Performance Streaming Asr Deployment](https://github.com/PaddlePaddle/PaddleSpeech/blob/develop/speechx/examples/u2pp_ol/wenetspeech).
- 👑 2022.11.01: Add [Adversarial Loss](https://arxiv.org/pdf/1907.04448.pdf) for [Chinese English mixed TTS](./examples/zh_en_tts/tts3).
- 🔥 2022.10.26: Add [Prosody Prediction](https://github.com/PaddlePaddle/PaddleSpeech/tree/develop/examples/other/rhy) for TTS.
Expand Down
3 changes: 3 additions & 0 deletions docs/source/released_model.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ FastSpeech2| AISHELL-3 |[fastspeech2-aishell3](https://github.com/PaddlePaddle/P
FastSpeech2| LJSpeech |[fastspeech2-ljspeech](https://github.com/PaddlePaddle/PaddleSpeech/tree/develop/examples/ljspeech/tts3)|[fastspeech2_nosil_ljspeech_ckpt_0.5.zip](https://paddlespeech.bj.bcebos.com/Parakeet/released_models/fastspeech2/fastspeech2_nosil_ljspeech_ckpt_0.5.zip)|[fastspeech2_ljspeech_static_1.1.0.zip](https://paddlespeech.bj.bcebos.com/Parakeet/released_models/fastspeech2/fastspeech2_ljspeech_static_1.1.0.zip) </br> [fastspeech2_ljspeech_onnx_1.1.0.zip](https://paddlespeech.bj.bcebos.com/Parakeet/released_models/fastspeech2/fastspeech2_ljspeech_onnx_1.1.0.zip)|145MB|
FastSpeech2| VCTK |[fastspeech2-vctk](https://github.com/PaddlePaddle/PaddleSpeech/tree/develop/examples/vctk/tts3)|[fastspeech2_vctk_ckpt_1.2.0.zip](https://paddlespeech.bj.bcebos.com/Parakeet/released_models/fastspeech2/fastspeech2_vctk_ckpt_1.2.0.zip)|[fastspeech2_vctk_static_1.1.0.zip](https://paddlespeech.bj.bcebos.com/Parakeet/released_models/fastspeech2/fastspeech2_vctk_static_1.1.0.zip) </br> [fastspeech2_vctk_onnx_1.1.0.zip](https://paddlespeech.bj.bcebos.com/Parakeet/released_models/fastspeech2/fastspeech2_vctk_onnx_1.1.0.zip) | 145MB|
FastSpeech2| ZH_EN |[fastspeech2-zh_en](https://github.com/PaddlePaddle/PaddleSpeech/tree/develop/examples/zh_en_tts/tts3)|[fastspeech2_mix_ckpt_1.2.0.zip](https://paddlespeech.bj.bcebos.com/t2s/chinse_english_mixed/models/fastspeech2_mix_ckpt_1.2.0.zip)|[fastspeech2_mix_static_0.2.0.zip](https://paddlespeech.bj.bcebos.com/t2s/chinse_english_mixed/models/fastspeech2_mix_static_0.2.0.zip) </br> [fastspeech2_mix_onnx_0.2.0.zip](https://paddlespeech.bj.bcebos.com/t2s/chinse_english_mixed/models/fastspeech2_mix_onnx_0.2.0.zip) | 145MB|
FastSpeech2| Male ||[fastspeech2_male_ckpt_1.0.zip](https://paddlespeech.bj.bcebos.com/Parakeet/released_models/fastspeech2/fastspeech2_male_ckpt_1.0.zip)| | |
yt605155624 marked this conversation as resolved.
Show resolved Hide resolved



### Vocoders
Expand All @@ -70,6 +72,7 @@ HiFiGAN | LJSpeech |[HiFiGAN-ljspeech](https://github.com/PaddlePaddle/PaddleSpe
HiFiGAN | AISHELL-3 |[HiFiGAN-aishell3](https://github.com/PaddlePaddle/PaddleSpeech/tree/develop/examples/aishell3/voc5)|[hifigan_aishell3_ckpt_0.2.0.zip](https://paddlespeech.bj.bcebos.com/Parakeet/released_models/hifigan/hifigan_aishell3_ckpt_0.2.0.zip)|[hifigan_aishell3_static_1.1.0.zip](https://paddlespeech.bj.bcebos.com/Parakeet/released_models/hifigan/hifigan_aishell3_static_1.1.0.zip) </br> [hifigan_aishell3_onnx_1.1.0.zip](https://paddlespeech.bj.bcebos.com/Parakeet/released_models/hifigan/hifigan_aishell3_onnx_1.1.0.zip)|46MB|
HiFiGAN | VCTK |[HiFiGAN-vctk](https://github.com/PaddlePaddle/PaddleSpeech/tree/develop/examples/vctk/voc5)|[hifigan_vctk_ckpt_0.2.0.zip](https://paddlespeech.bj.bcebos.com/Parakeet/released_models/hifigan/hifigan_vctk_ckpt_0.2.0.zip)|[hifigan_vctk_static_1.1.0.zip](https://paddlespeech.bj.bcebos.com/Parakeet/released_models/hifigan/hifigan_vctk_static_1.1.0.zip) </br> [hifigan_vctk_onnx_1.1.0.zip](https://paddlespeech.bj.bcebos.com/Parakeet/released_models/hifigan/hifigan_vctk_onnx_1.1.0.zip)|46MB|
WaveRNN | CSMSC |[WaveRNN-csmsc](https://github.com/PaddlePaddle/PaddleSpeech/tree/develop/examples/csmsc/voc6)|[wavernn_csmsc_ckpt_0.2.0.zip](https://paddlespeech.bj.bcebos.com/Parakeet/released_models/wavernn/wavernn_csmsc_ckpt_0.2.0.zip)|[wavernn_csmsc_static_0.2.0.zip](https://paddlespeech.bj.bcebos.com/Parakeet/released_models/wavernn/wavernn_csmsc_static_0.2.0.zip)|18MB|
Parallel WaveGAN| Male ||[pwg_male_ckpt_1.0.zip](https://paddlespeech.bj.bcebos.com/Parakeet/released_models/pwgan/pwg_male_ckpt_1.0.zip)|||
yt605155624 marked this conversation as resolved.
Show resolved Hide resolved


### Voice Cloning
Expand Down
2 changes: 2 additions & 0 deletions paddlespeech/cli/tts/infer.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def __init__(self):
'fastspeech2_mix',
'tacotron2_csmsc',
'tacotron2_ljspeech',
'fastspeech2_male',
],
help='Choose acoustic model type of tts task.')
self.parser.add_argument(
Expand Down Expand Up @@ -122,6 +123,7 @@ def __init__(self):
'hifigan_aishell3',
'hifigan_vctk',
'wavernn_csmsc',
'pwgan_male',
],
help='Choose vocoder type of tts task.')

Expand Down
30 changes: 30 additions & 0 deletions paddlespeech/resource/pretrained_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,22 @@
'speaker_id_map.txt',
},
},
"fastspeech2_male-zh": {
'1.0': {
'url':
'https://paddlespeech.bj.bcebos.com/Parakeet/released_models/fastspeech2/fastspeech2_male_ckpt_1.0.zip',
yt605155624 marked this conversation as resolved.
Show resolved Hide resolved
'md5':
'e7a42e9f126deb164ee902e4d14a64d3',
'config':
'default.yaml',
'ckpt':
'snapshot_iter_76000.pdz',
'speech_stats':
'speech_stats.npy',
'phones_dict':
'phone_id_map.txt',
},
},
# tacotron2
"tacotron2_csmsc-zh": {
'1.0': {
Expand Down Expand Up @@ -813,6 +829,20 @@
'feats_stats.npy',
},
},
"pwgan_male-zh": {
'1.0': {
'url':
'https://paddlespeech.bj.bcebos.com/Parakeet/released_models/pwgan/pwg_male_ckpt_1.0.zip',
'md5':
'26ae7eb8c52741a90e863f0443097f80',
'config':
'default.yaml',
'ckpt':
'snapshot_iter_200000.pdz',
'speech_stats':
'feats_stats.npy',
},
},
# mb_melgan
"mb_melgan_csmsc-zh": {
'1.0': {
Expand Down
1 change: 1 addition & 0 deletions tests/unit/cli/test_cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ paddlespeech tts --am fastspeech2_vctk --voc hifigan_vctk --input "Life was like
paddlespeech tts --am tacotron2_csmsc --input "你好,欢迎使用百度飞桨深度学习框架!"
paddlespeech tts --am tacotron2_csmsc --voc wavernn_csmsc --input "你好,欢迎使用百度飞桨深度学习框架!"
paddlespeech tts --am tacotron2_ljspeech --voc pwgan_ljspeech --lang en --input "Life was like a box of chocolates, you never know what you're gonna get."
paddlespeech tts --am fastspeech2_male --voc pwgan_male --input "你好,欢迎使用百度飞桨深度学习框架!"
# mix tts
# The `am` must be `fastspeech2_mix`!
# The `lang` must be `mix`!
Expand Down