Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
4d867700
D
DeepSpeech
项目概览
PaddlePaddle
/
DeepSpeech
9 个月 前同步成功
通知
200
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看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
4d867700
编写于
6月 07, 2023
作者:
H
Hui Zhang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
move ssl into t2s.frontend; fix spk_id for 0-D tensor;
上级
558cfc72
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
4 addition
and
4 deletion
+4
-4
paddlespeech/t2s/__init__.py
paddlespeech/t2s/__init__.py
+0
-1
paddlespeech/t2s/exps/synthesize_e2e.py
paddlespeech/t2s/exps/synthesize_e2e.py
+2
-2
paddlespeech/t2s/frontend/__init__.py
paddlespeech/t2s/frontend/__init__.py
+1
-0
paddlespeech/t2s/frontend/mix_frontend.py
paddlespeech/t2s/frontend/mix_frontend.py
+1
-1
未找到文件。
paddlespeech/t2s/__init__.py
浏览文件 @
4d867700
...
...
@@ -18,6 +18,5 @@ from . import exps
from
.
import
frontend
from
.
import
models
from
.
import
modules
from
.
import
ssml
from
.
import
training
from
.
import
utils
paddlespeech/t2s/exps/synthesize_e2e.py
浏览文件 @
4d867700
...
...
@@ -148,7 +148,7 @@ def evaluate(args):
# multi speaker
if
am_dataset
in
{
"aishell3"
,
"vctk"
,
"mix"
,
"canton"
}:
# multi-speaker
spk_id
=
paddle
.
to_tensor
(
args
.
spk_id
)
spk_id
=
paddle
.
to_tensor
(
[
args
.
spk_id
]
)
mel
=
am_inference
(
part_phone_ids
,
spk_id
)
else
:
# single-speaker
...
...
@@ -157,7 +157,7 @@ def evaluate(args):
part_tone_ids
=
frontend_dict
[
'tone_ids'
][
i
]
if
am_dataset
in
{
"aishell3"
,
"vctk"
,
"mix"
}:
# multi-speaker
spk_id
=
paddle
.
to_tensor
(
args
.
spk_id
)
spk_id
=
paddle
.
to_tensor
(
[
args
.
spk_id
]
)
mel
=
am_inference
(
part_phone_ids
,
part_tone_ids
,
spk_id
)
else
:
...
...
paddlespeech/t2s/frontend/__init__.py
浏览文件 @
4d867700
...
...
@@ -15,6 +15,7 @@ from .generate_lexicon import *
from
.normalizer
import
*
from
.phonectic
import
*
from
.punctuation
import
*
from
.ssml
import
*
from
.tone_sandhi
import
*
from
.vocab
import
*
from
.zh_normalization
import
*
paddlespeech/t2s/frontend/mix_frontend.py
浏览文件 @
4d867700
...
...
@@ -19,8 +19,8 @@ import numpy as np
import
paddle
from
paddlespeech.t2s.frontend
import
English
from
paddlespeech.t2s.frontend.ssml.xml_processor
import
MixTextProcessor
from
paddlespeech.t2s.frontend.zh_frontend
import
Frontend
from
paddlespeech.t2s.ssml.xml_processor
import
MixTextProcessor
class
MixFrontend
():
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录