Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
83d93da8
D
DeepSpeech
项目概览
PaddlePaddle
/
DeepSpeech
大约 2 年 前同步成功
通知
210
Star
8425
Fork
1598
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
245
列表
看板
标记
里程碑
合并请求
3
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
DeepSpeech
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
245
Issue
245
列表
看板
标记
里程碑
合并请求
3
合并请求
3
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
83d93da8
编写于
6月 02, 2023
作者:
H
Hui Zhang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add scripts for tts code switch
上级
bae905c9
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
49 addition
and
18 deletion
+49
-18
examples/zh_en_tts/tts3/.gitignore
examples/zh_en_tts/tts3/.gitignore
+2
-0
examples/zh_en_tts/tts3/README.md
examples/zh_en_tts/tts3/README.md
+16
-16
examples/zh_en_tts/tts3/local/mfa_download.sh
examples/zh_en_tts/tts3/local/mfa_download.sh
+16
-0
examples/zh_en_tts/tts3/local/model_download.sh
examples/zh_en_tts/tts3/local/model_download.sh
+13
-0
examples/zh_en_tts/tts3/run.sh
examples/zh_en_tts/tts3/run.sh
+2
-2
未找到文件。
examples/zh_en_tts/tts3/.gitignore
0 → 100644
浏览文件 @
83d93da8
data
exp
examples/zh_en_tts/tts3/README.md
浏览文件 @
83d93da8
...
@@ -6,11 +6,11 @@ This example contains code used to train a [Fastspeech2](https://arxiv.org/abs/2
...
@@ -6,11 +6,11 @@ This example contains code used to train a [Fastspeech2](https://arxiv.org/abs/2
## Dataset
## Dataset
### Download and Extract
### Download and Extract
Download all datasets and extract it to
`
~/datasets
`
:
Download all datasets and extract it to
`
./data
`
:
-
The CSMSC dataset is in the directory
`
~/datasets
/BZNSYP`
-
The CSMSC dataset is in the directory
`
./data
/BZNSYP`
-
The Ljspeech dataset is in the directory
`
~/datasets
/LJSpeech-1.1`
-
The Ljspeech dataset is in the directory
`
./data
/LJSpeech-1.1`
-
The aishell3 dataset is in the directory
`
~/datasets
/data_aishell3`
-
The aishell3 dataset is in the directory
`
./data
/data_aishell3`
-
The vctk dataset is in the directory
`
~/datasets
/VCTK-Corpus-0.92`
-
The vctk dataset is in the directory
`
./data
/VCTK-Corpus-0.92`
### Get MFA Result and Extract
### Get MFA Result and Extract
We use
[
MFA
](
https://github.com/MontrealCorpusTools/Montreal-Forced-Aligner
)
to get durations for the fastspeech2 training.
We use
[
MFA
](
https://github.com/MontrealCorpusTools/Montreal-Forced-Aligner
)
to get durations for the fastspeech2 training.
...
@@ -24,16 +24,16 @@ Or train your MFA model reference to [mfa example](https://github.com/PaddlePadd
...
@@ -24,16 +24,16 @@ Or train your MFA model reference to [mfa example](https://github.com/PaddlePadd
## Get Started
## Get Started
Assume the paths to the datasets are:
Assume the paths to the datasets are:
-
`
~/datasets
/BZNSYP`
-
`
./data
/BZNSYP`
-
`
~/datasets
/LJSpeech-1.1`
-
`
./data
/LJSpeech-1.1`
-
`
~/datasets
/data_aishell3`
-
`
./data
/data_aishell3`
-
`
~/datasets
/VCTK-Corpus-0.92`
-
`
./data
/VCTK-Corpus-0.92`
Assume the path to the MFA results of the datasets are:
Assume the path to the MFA results of the datasets are:
-
`./
mfa_results
/baker_alignment_tone`
-
`./
data/mfa
/baker_alignment_tone`
-
`./
mfa_results
/ljspeech_alignment`
-
`./
data/mfa
/ljspeech_alignment`
-
`./
mfa_results
/aishell3_alignment_tone`
-
`./
data/mfa
/aishell3_alignment_tone`
-
`./
mfa_results
/vctk_alignment`
-
`./
data/mfa
/vctk_alignment`
Run the command below to
Run the command below to
1.
**source path**
.
1.
**source path**
.
...
@@ -288,6 +288,9 @@ python3 ${BIN_DIR}/../synthesize_e2e.py \
...
@@ -288,6 +288,9 @@ python3 ${BIN_DIR}/../synthesize_e2e.py \
--am_config
=
fastspeech2_mix_ckpt_1.2.0/default.yaml
\
--am_config
=
fastspeech2_mix_ckpt_1.2.0/default.yaml
\
--am_ckpt
=
fastspeech2_mix_ckpt_1.2.0/snapshot_iter_99200.pdz
\
--am_ckpt
=
fastspeech2_mix_ckpt_1.2.0/snapshot_iter_99200.pdz
\
--am_stat
=
fastspeech2_mix_ckpt_1.2.0/speech_stats.npy
\
--am_stat
=
fastspeech2_mix_ckpt_1.2.0/speech_stats.npy
\
--phones_dict
=
fastspeech2_mix_ckpt_1.2.0/phone_id_map.txt
\
--speaker_dict
=
fastspeech2_mix_ckpt_1.2.0/speaker_id_map.txt
\
--spk_id
=
174
\
--voc
=
pwgan_aishell3
\
--voc
=
pwgan_aishell3
\
--voc_config
=
pwg_aishell3_ckpt_0.5/default.yaml
\
--voc_config
=
pwg_aishell3_ckpt_0.5/default.yaml
\
--voc_ckpt
=
pwg_aishell3_ckpt_0.5/snapshot_iter_1000000.pdz
\
--voc_ckpt
=
pwg_aishell3_ckpt_0.5/snapshot_iter_1000000.pdz
\
...
@@ -295,8 +298,5 @@ python3 ${BIN_DIR}/../synthesize_e2e.py \
...
@@ -295,8 +298,5 @@ python3 ${BIN_DIR}/../synthesize_e2e.py \
--lang
=
mix
\
--lang
=
mix
\
--text
=
${
BIN_DIR
}
/../sentences_mix.txt
\
--text
=
${
BIN_DIR
}
/../sentences_mix.txt
\
--output_dir
=
exp/default/test_e2e
\
--output_dir
=
exp/default/test_e2e
\
--phones_dict
=
fastspeech2_mix_ckpt_1.2.0/phone_id_map.txt
\
--speaker_dict
=
fastspeech2_mix_ckpt_1.2.0/speaker_id_map.txt
\
--spk_id
=
174
\
--inference_dir
=
exp/default/inference
--inference_dir
=
exp/default/inference
```
```
examples/zh_en_tts/tts3/local/mfa_download.sh
0 → 100755
浏览文件 @
83d93da8
#!/bin/bash
exp
=
exp
mfa
=
$exp
/mfa
mkdir
-p
$mfa
pushd
$mfa
wget
-c
https://paddlespeech.bj.bcebos.com/MFA/BZNSYP/with_tone/baker_alignment_tone.tar.gz &
wget
-c
https://paddlespeech.bj.bcebos.com/MFA/LJSpeech-1.1/ljspeech_alignment.tar.gz &
wget
-c
https://paddlespeech.bj.bcebos.com/MFA/AISHELL-3/with_tone/aishell3_alignment_tone.tar.gz &
wget
-c
https://paddlespeech.bj.bcebos.com/MFA/VCTK-Corpus-0.92/vctk_alignment.tar.gz &
wait
popd
examples/zh_en_tts/tts3/local/model_download.sh
0 → 100755
浏览文件 @
83d93da8
#!/bin/bash
exp
=
exp
pretrain
=
$exp
/pretrain
mkdir
-p
$pretrain
pushd
$pretrain
wget
-c
https://paddlespeech.bj.bcebos.com/t2s/chinse_english_mixed/models/fastspeech2_mix_ckpt_1.2.0.zip &
wait
popd
examples/zh_en_tts/tts3/run.sh
浏览文件 @
83d93da8
...
@@ -7,8 +7,8 @@ gpus=0,1
...
@@ -7,8 +7,8 @@ gpus=0,1
stage
=
0
stage
=
0
stop_stage
=
100
stop_stage
=
100
datasets_root_dir
=
~/datasets
datasets_root_dir
=
./data
mfa_root_dir
=
./
mfa_results/
mfa_root_dir
=
./
data/mfa
conf_path
=
conf/default.yaml
conf_path
=
conf/default.yaml
train_output_path
=
exp/default
train_output_path
=
exp/default
ckpt_name
=
snapshot_iter_99200.pdz
ckpt_name
=
snapshot_iter_99200.pdz
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录