Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
ac385053
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看板
未验证
提交
ac385053
编写于
8月 15, 2022
作者:
L
liangym
提交者:
GitHub
8月 15, 2022
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #2249 from yt605155624/fix_mix_cli
[tts][cli]update mix tts
上级
ed18b08d
5d515f3f
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
25 addition
and
5 deletion
+25
-5
paddlespeech/cli/tts/infer.py
paddlespeech/cli/tts/infer.py
+2
-2
paddlespeech/resource/pretrained_models.py
paddlespeech/resource/pretrained_models.py
+16
-0
tests/unit/cli/test_cli.sh
tests/unit/cli/test_cli.sh
+7
-3
未找到文件。
paddlespeech/cli/tts/infer.py
浏览文件 @
ac385053
...
...
@@ -255,9 +255,9 @@ class TTSExecutor(BaseExecutor):
else
:
use_pretrained_voc
=
False
voc_lang
=
lang
#
we must use ljspeech's voc for mix am now!
#
When speaker is 174 (csmsc), use csmsc's vocoder is better than aishell3's
if
lang
==
'mix'
:
voc_lang
=
'
en
'
voc_lang
=
'
zh
'
voc_tag
=
voc
+
'-'
+
voc_lang
self
.
task_resource
.
set_task_model
(
model_tag
=
voc_tag
,
...
...
paddlespeech/resource/pretrained_models.py
浏览文件 @
ac385053
...
...
@@ -672,6 +672,22 @@ tts_dynamic_pretrained_models = {
'speaker_dict'
:
'speaker_id_map.txt'
,
},
'2.0'
:
{
'url'
:
'https://paddlespeech.bj.bcebos.com/t2s/chinse_english_mixed/models/fastspeech2_mix_ckpt_0.2.0.zip'
,
'md5'
:
'1d938e104e972386c8bfcbcc98a91587'
,
'config'
:
'default.yaml'
,
'ckpt'
:
'snapshot_iter_99200.pdz'
,
'speech_stats'
:
'speech_stats.npy'
,
'phones_dict'
:
'phone_id_map.txt'
,
'speaker_dict'
:
'speaker_id_map.txt'
,
},
},
# tacotron2
"tacotron2_csmsc-zh"
:
{
...
...
tests/unit/cli/test_cli.sh
浏览文件 @
ac385053
...
...
@@ -56,9 +56,13 @@ paddlespeech tts --am tacotron2_ljspeech --voc pwgan_ljspeech --lang en --input
# mix tts
# The `am` must be `fastspeech2_mix`!
# The `lang` must be `mix`!
# The voc must be `hifigan_ljspeech` or `pwgan_ljspeech` for f`astspeech2_mix` now!
paddlespeech tts
--am
fastspeech2_mix
--voc
hifigan_ljspeech
--lang
mix
--input
"热烈欢迎您在 Discussions 中提交问题,并在 Issues 中指出发现的 bug。此外,我们非常希望您参与到 Paddle Speech 的开发中!"
--spk_id
0
--output
mix_spk0.wav
paddlespeech tts
--am
fastspeech2_mix
--voc
pwgan_ljspeech
--lang
mix
--input
"我们的声学模型使用了 Fast Speech Two, 声码器使用了 Parallel Wave GAN and Hifi GAN."
--spk_id
1
--output
mix_spk1.wav
# The voc must be chinese datasets' voc now!
# spk 174 is csmcc, spk 175 is ljspeech
paddlespeech tts
--am
fastspeech2_mix
--voc
hifigan_csmsc
--lang
mix
--input
"热烈欢迎您在 Discussions 中提交问题,并在 Issues 中指出发现的 bug。此外,我们非常希望您参与到 Paddle Speech 的开发中!"
--spk_id
174
--output
mix_spk174.wav
paddlespeech tts
--am
fastspeech2_mix
--voc
hifigan_aishell3
--lang
mix
--input
"热烈欢迎您在 Discussions 中提交问题,并在 Issues 中指出发现的 bug。此外,我们非常希望您参与到 Paddle Speech 的开发中!"
--spk_id
174
--output
mix_spk174_aishell3.wav
paddlespeech tts
--am
fastspeech2_mix
--voc
pwgan_csmsc
--lang
mix
--input
"我们的声学模型使用了 Fast Speech Two, 声码器使用了 Parallel Wave GAN and Hifi GAN."
--spk_id
175
--output
mix_spk175_pwgan.wav
paddlespeech tts
--am
fastspeech2_mix
--voc
hifigan_csmsc
--lang
mix
--input
"我们的声学模型使用了 Fast Speech Two, 声码器使用了 Parallel Wave GAN and Hifi GAN."
--spk_id
175
--output
mix_spk175.wav
# Speech Translation (only support linux)
paddlespeech st
--input
./en.wav
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录