Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
a861e56e
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看板
提交
a861e56e
编写于
11月 26, 2021
作者:
小湉湉
提交者:
root
11月 26, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
rm space for pure Chinese
上级
dad1cbbc
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
11 addition
and
7 deletion
+11
-7
demos/style_fs2/style_syn.py
demos/style_fs2/style_syn.py
+1
-1
paddlespeech/t2s/exps/fastspeech2/inference.py
paddlespeech/t2s/exps/fastspeech2/inference.py
+1
-1
paddlespeech/t2s/exps/fastspeech2/multi_spk_synthesize_e2e.py
...lespeech/t2s/exps/fastspeech2/multi_spk_synthesize_e2e.py
+1
-1
paddlespeech/t2s/exps/fastspeech2/synthesize_e2e.py
paddlespeech/t2s/exps/fastspeech2/synthesize_e2e.py
+1
-1
paddlespeech/t2s/exps/fastspeech2/synthesize_e2e_melgan.py
paddlespeech/t2s/exps/fastspeech2/synthesize_e2e_melgan.py
+1
-1
paddlespeech/t2s/exps/speedyspeech/inference.py
paddlespeech/t2s/exps/speedyspeech/inference.py
+1
-1
paddlespeech/t2s/exps/speedyspeech/synthesize_e2e.py
paddlespeech/t2s/exps/speedyspeech/synthesize_e2e.py
+1
-1
paddlespeech/t2s/frontend/zh_frontend.py
paddlespeech/t2s/frontend/zh_frontend.py
+2
-0
paddlespeech/t2s/frontend/zh_normalization/text_normlization.py
...speech/t2s/frontend/zh_normalization/text_normlization.py
+2
-0
未找到文件。
demos/style_fs2/style_syn.py
浏览文件 @
a861e56e
...
...
@@ -36,7 +36,7 @@ def evaluate(args, fastspeech2_config, pwg_config):
for
line
in
f
:
items
=
line
.
strip
().
split
()
utt_id
=
items
[
0
]
sentence
=
"
,
"
.
join
(
items
[
1
:])
sentence
=
""
.
join
(
items
[
1
:])
sentences
.
append
((
utt_id
,
sentence
))
with
open
(
args
.
phones_dict
,
"r"
)
as
f
:
...
...
paddlespeech/t2s/exps/fastspeech2/inference.py
浏览文件 @
a861e56e
...
...
@@ -84,7 +84,7 @@ def main():
for
line
in
f
:
items
=
line
.
strip
().
split
()
utt_id
=
items
[
0
]
sentence
=
"
,
"
.
join
(
items
[
1
:])
sentence
=
""
.
join
(
items
[
1
:])
sentences
.
append
((
utt_id
,
sentence
))
for
utt_id
,
sentence
in
sentences
:
...
...
paddlespeech/t2s/exps/fastspeech2/multi_spk_synthesize_e2e.py
浏览文件 @
a861e56e
...
...
@@ -39,7 +39,7 @@ def evaluate(args, fastspeech2_config, pwg_config):
for
line
in
f
:
items
=
line
.
strip
().
split
()
utt_id
=
items
[
0
]
sentence
=
"
,
"
.
join
(
items
[
1
:])
sentence
=
""
.
join
(
items
[
1
:])
sentences
.
append
((
utt_id
,
sentence
))
with
open
(
args
.
phones_dict
,
"r"
)
as
f
:
...
...
paddlespeech/t2s/exps/fastspeech2/synthesize_e2e.py
浏览文件 @
a861e56e
...
...
@@ -42,7 +42,7 @@ def evaluate(args, fastspeech2_config, pwg_config):
for
line
in
f
:
items
=
line
.
strip
().
split
()
utt_id
=
items
[
0
]
sentence
=
"
,
"
.
join
(
items
[
1
:])
sentence
=
""
.
join
(
items
[
1
:])
sentences
.
append
((
utt_id
,
sentence
))
with
open
(
args
.
phones_dict
,
"r"
)
as
f
:
...
...
paddlespeech/t2s/exps/fastspeech2/synthesize_e2e_melgan.py
浏览文件 @
a861e56e
...
...
@@ -42,7 +42,7 @@ def evaluate(args, fastspeech2_config, melgan_config):
for
line
in
f
:
items
=
line
.
strip
().
split
()
utt_id
=
items
[
0
]
sentence
=
"
,
"
.
join
(
items
[
1
:])
sentence
=
""
.
join
(
items
[
1
:])
sentences
.
append
((
utt_id
,
sentence
))
with
open
(
args
.
phones_dict
,
"r"
)
as
f
:
...
...
paddlespeech/t2s/exps/speedyspeech/inference.py
浏览文件 @
a861e56e
...
...
@@ -89,7 +89,7 @@ def main():
for
line
in
f
:
items
=
line
.
strip
().
split
()
utt_id
=
items
[
0
]
sentence
=
"
,
"
.
join
(
items
[
1
:])
sentence
=
""
.
join
(
items
[
1
:])
sentences
.
append
((
utt_id
,
sentence
))
for
utt_id
,
sentence
in
sentences
:
...
...
paddlespeech/t2s/exps/speedyspeech/synthesize_e2e.py
浏览文件 @
a861e56e
...
...
@@ -42,7 +42,7 @@ def evaluate(args, speedyspeech_config, pwg_config):
for
line
in
f
:
items
=
line
.
strip
().
split
()
utt_id
=
items
[
0
]
sentence
=
"
,
"
.
join
(
items
[
1
:])
sentence
=
""
.
join
(
items
[
1
:])
sentences
.
append
((
utt_id
,
sentence
))
with
open
(
args
.
phones_dict
,
"r"
)
as
f
:
...
...
paddlespeech/t2s/frontend/zh_frontend.py
浏览文件 @
a861e56e
...
...
@@ -129,6 +129,8 @@ class Frontend():
# we discriminate i, ii and iii
if
c
and
c
not
in
self
.
punc
:
phones
.
append
(
c
)
if
c
and
c
in
self
.
punc
:
phones
.
append
(
'sp'
)
if
v
and
v
not
in
self
.
punc
:
phones
.
append
(
v
)
# add sp between sentence (replace the last punc with sp)
...
...
paddlespeech/t2s/frontend/zh_normalization/text_normlization.py
浏览文件 @
a861e56e
...
...
@@ -64,6 +64,8 @@ class TextNormalizer():
List[str]
Sentences.
"""
# Only for pure Chinese here
text
=
text
.
replace
(
" "
,
""
)
text
=
self
.
SENTENCE_SPLITOR
.
sub
(
r
'\1\n'
,
text
)
text
=
text
.
strip
()
sentences
=
[
sentence
.
strip
()
for
sentence
in
re
.
split
(
r
'\n+'
,
text
)]
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录