Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
c8196d45
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看板
未验证
提交
c8196d45
编写于
3月 01, 2023
作者:
H
HuangLiangJie
提交者:
GitHub
3月 01, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[TTS]Canton CLI, test=tts (#2977)
上级
44a33b3d
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
22 addition
and
2 deletion
+22
-2
paddlespeech/cli/tts/infer.py
paddlespeech/cli/tts/infer.py
+3
-2
paddlespeech/resource/pretrained_models.py
paddlespeech/resource/pretrained_models.py
+18
-0
tests/unit/cli/test_cli.sh
tests/unit/cli/test_cli.sh
+1
-0
未找到文件。
paddlespeech/cli/tts/infer.py
浏览文件 @
c8196d45
...
...
@@ -82,6 +82,7 @@ class TTSExecutor(BaseExecutor):
'tacotron2_csmsc'
,
'tacotron2_ljspeech'
,
'fastspeech2_male'
,
'fastspeech2_canton'
,
],
help
=
'Choose acoustic model type of tts task.'
)
self
.
parser
.
add_argument
(
...
...
@@ -273,7 +274,7 @@ class TTSExecutor(BaseExecutor):
use_pretrained_voc
=
False
voc_lang
=
lang
# When speaker is 174 (csmsc), use csmsc's vocoder is better than aishell3's
if
lang
==
'mix'
:
if
lang
==
'mix'
or
lang
==
'canton'
:
voc_dataset
=
voc
[
voc
.
rindex
(
'_'
)
+
1
:]
if
voc_dataset
in
{
"ljspeech"
,
"vctk"
}:
voc_lang
=
'en'
...
...
@@ -487,7 +488,7 @@ class TTSExecutor(BaseExecutor):
# fastspeech2
else
:
# multi speaker
if
am_dataset
in
{
'aishell3'
,
'vctk'
,
'mix'
}:
if
am_dataset
in
{
'aishell3'
,
'vctk'
,
'mix'
,
'canton'
}:
mel
=
self
.
am_inference
(
part_phone_ids
,
spk_id
=
paddle
.
to_tensor
(
spk_id
))
else
:
...
...
paddlespeech/resource/pretrained_models.py
浏览文件 @
c8196d45
...
...
@@ -889,6 +889,24 @@ tts_dynamic_pretrained_models = {
'phone_id_map.txt'
,
},
},
"fastspeech2_canton-canton"
:
{
'1.0'
:
{
'url'
:
'https://paddlespeech.bj.bcebos.com/Parakeet/released_models/fastspeech2/fastspeech2_canton_ckpt_1.4.0.zip'
,
'md5'
:
'504560c082deba82120927627c900374'
,
'config'
:
'default.yaml'
,
'ckpt'
:
'snapshot_iter_140000.pdz'
,
'speech_stats'
:
'speech_stats.npy'
,
'phones_dict'
:
'phone_id_map.txt'
,
'speaker_dict'
:
'speaker_id_map.txt'
,
},
},
"fastspeech2_ljspeech-en"
:
{
'1.0'
:
{
'url'
:
...
...
tests/unit/cli/test_cli.sh
浏览文件 @
c8196d45
...
...
@@ -61,6 +61,7 @@ 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
--lang
zh
--input
"你好,欢迎使用百度飞桨深度学习框架!"
paddlespeech tts
--am
fastspeech2_male
--voc
pwgan_male
--lang
en
--input
"Life was like a box of chocolates, you never know what you're gonna get."
paddlespeech tts
--am
fastspeech2_canton
--voc
pwgan_aishell3
--input
"各个国家有各个国家嘅国歌"
--lang
canton
--spk_id
10
# mix tts
# The `am` must be `fastspeech2_mix`!
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录