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]Cantonese FastSpeech2 e2e infer, test=tts #2927

Merged
merged 35 commits into from
Feb 16, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
f90e242
Merge branch 'PaddlePaddle:develop' into develop
WongLaw Oct 20, 2022
b2597bc
Merge branch 'PaddlePaddle:develop' into develop
WongLaw Oct 25, 2022
0ab03d8
Merge branch 'PaddlePaddle:develop' into develop
WongLaw Oct 26, 2022
a20ca46
Merge branch 'PaddlePaddle:develop' into develop
WongLaw Nov 1, 2022
26a6fb5
Merge branch 'PaddlePaddle:develop' into develop
WongLaw Nov 2, 2022
0cee810
Add rhythm tags for MFA, test=tts
WongLaw Nov 2, 2022
d7e2931
Add rhythm tags for MFA, test=tts
WongLaw Nov 2, 2022
832ff0e
Merge branch 'PaddlePaddle:develop' into develop
WongLaw Nov 7, 2022
7939884
Revised Rhythm label for MFA, test=tts
WongLaw Nov 7, 2022
05447ea
Merge branch 'PaddlePaddle:develop' into develop
WongLaw Nov 28, 2022
f28d0a1
Merge branch 'PaddlePaddle:develop' into develop
WongLaw Dec 27, 2022
a6adcc4
Merge branch 'PaddlePaddle:develop' into develop
WongLaw Jan 3, 2023
696ee80
Merge branch 'PaddlePaddle:develop' into develop
WongLaw Jan 8, 2023
5525468
Merge branch 'PaddlePaddle:develop' into develop
WongLaw Feb 7, 2023
2430e13
Merge branch 'PaddlePaddle:develop' into develop
WongLaw Feb 7, 2023
0ab7fb0
Merge branch 'PaddlePaddle:develop' into develop
WongLaw Feb 8, 2023
859e8d2
Merge branch 'PaddlePaddle:develop' into develop
WongLaw Feb 10, 2023
3131c9b
Cantonese FastSpeech2 Training, test=tts
WongLaw Feb 10, 2023
4f144fa
Cantonese FastSpeech2 Training, test=tts
WongLaw Feb 10, 2023
2016080
Cantonese FastSpeech2 Training, test=tts
WongLaw Feb 13, 2023
eff42a4
Cantonese FastSpeech2 Training, test=tts
WongLaw Feb 13, 2023
e79f0a6
Cantonese FastSpeech2 Training, test=tts
WongLaw Feb 13, 2023
22f8a09
Cantonese FastSpeech2 Training, test=tts
WongLaw Feb 13, 2023
599f325
Cantonese FastSpeech2 Training, test=tts
WongLaw Feb 13, 2023
54629d3
Cantonese FastSpeech2 Training, test=tts
WongLaw Feb 14, 2023
b415723
Cantonese FastSpeech2 Training, test=tts
WongLaw Feb 14, 2023
2e825a4
Cantonese FastSpeech2 e2e infer, test=tts
WongLaw Feb 15, 2023
db7e651
Merge branch 'develop' into canton_model
WongLaw Feb 15, 2023
8ba2e61
Cantonese FastSpeech2 e2e infer, test=tts
WongLaw Feb 15, 2023
668a1ee
Merge branch 'PaddlePaddle:develop' into canton_model
WongLaw Feb 15, 2023
d3cd1b9
Merge branch 'canton_model' of https://github.com/WongLaw/PaddleSpeec…
WongLaw Feb 15, 2023
aafff71
Cantonese FastSpeech2 e2e infer, test=tts
WongLaw Feb 15, 2023
9c4341a
Cantonese FastSpeech2 e2e infer, test=tts
WongLaw Feb 15, 2023
8bd9991
Cantonese FastSpeech2 e2e infer, test=tts
WongLaw Feb 15, 2023
e731d69
Cantonese FastSpeech2 e2e infer, test=tts
WongLaw Feb 15, 2023
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
42 changes: 1 addition & 41 deletions examples/canton/tts3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,44 +74,4 @@ Also, there is a `metadata.jsonl` in each subfolder. It is a table-like file tha

### Training details can refer to the script of [examples/aishell3/tts3](../../aishell3/tts3).

## Pretrained Model(Waiting========)
Pretrained FastSpeech2 model with no silence in the edge of audios:
- [fastspeech2_aishell3_ckpt_1.1.0.zip](https://paddlespeech.bj.bcebos.com/Parakeet/released_models/fastspeech2/fastspeech2_aishell3_ckpt_1.1.0.zip)
- [fastspeech2_conformer_aishell3_ckpt_0.2.0.zip](https://paddlespeech.bj.bcebos.com/Parakeet/released_models/fastspeech2/fastspeech2_conformer_aishell3_ckpt_0.2.0.zip) (Thanks for [@awmmmm](https://github.com/awmmmm)'s contribution)


FastSpeech2 checkpoint contains files listed below.

```text
fastspeech2_aishell3_ckpt_1.1.0
├── default.yaml # default config used to train fastspeech2
├── energy_stats.npy # statistics used to normalize energy when training fastspeech2
├── phone_id_map.txt # phone vocabulary file when training fastspeech2
├── pitch_stats.npy # statistics used to normalize pitch when training fastspeech2
├── snapshot_iter_96400.pdz # model parameters and optimizer states
├── speaker_id_map.txt # speaker id map file when training a multi-speaker fastspeech2
└── speech_stats.npy # statistics used to normalize spectrogram when training fastspeech2
```
You can use the following scripts to synthesize for `${BIN_DIR}/../sentences.txt` using pretrained fastspeech2 and parallel wavegan models.
```bash
source path.sh

FLAGS_allocator_strategy=naive_best_fit \
FLAGS_fraction_of_gpu_memory_to_use=0.01 \
python3 ${BIN_DIR}/../synthesize_e2e.py \
--am=fastspeech2_aishell3 \
--am_config=fastspeech2_aishell3_ckpt_1.1.0/default.yaml \
--am_ckpt=fastspeech2_aishell3_ckpt_1.1.0/snapshot_iter_96400.pdz \
--am_stat=fastspeech2_aishell3_ckpt_1.1.0/speech_stats.npy \
--voc=pwgan_aishell3 \
--voc_config=pwg_aishell3_ckpt_0.5/default.yaml \
--voc_ckpt=pwg_aishell3_ckpt_0.5/snapshot_iter_1000000.pdz \
--voc_stat=pwg_aishell3_ckpt_0.5/feats_stats.npy \
--lang=zh \
--text=${BIN_DIR}/../sentences.txt \
--output_dir=exp/default/test_e2e \
--phones_dict=fastspeech2_aishell3_ckpt_1.1.0/phone_id_map.txt \
--speaker_dict=fastspeech2_aishell3_ckpt_1.1.0/speaker_id_map.txt \
--spk_id=0 \
--inference_dir=exp/default/inference
```
## Pretrained Model
3 changes: 2 additions & 1 deletion examples/canton/tts3/run.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ stop_stage=100

conf_path=conf/default.yaml
train_output_path=exp/default

ckpt_name=snapshot_iter_280000.pdz

# with the following command, you can choose the stage range you want to run
Expand All @@ -34,4 +35,4 @@ fi
if [ ${stage} -le 3 ] && [ ${stop_stage} -ge 3 ]; then
# synthesize_e2e, vocoder is pwgan by default
CUDA_VISIBLE_DEVICES=${gpus} ./local/synthesize_e2e.sh ${conf_path} ${train_output_path} ${ckpt_name} || exit -1
fi
fi