Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
40124ed3
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 搜索 >>
提交
40124ed3
编写于
6月 07, 2023
作者:
H
Hui Zhang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add en_frontend file
上级
9727e67a
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
15 addition
and
12 deletion
+15
-12
paddlespeech/server/engine/tts/online/onnx/tts_engine.py
paddlespeech/server/engine/tts/online/onnx/tts_engine.py
+1
-1
paddlespeech/server/engine/tts/online/python/tts_engine.py
paddlespeech/server/engine/tts/online/python/tts_engine.py
+1
-1
paddlespeech/server/engine/tts/paddleinference/tts_engine.py
paddlespeech/server/engine/tts/paddleinference/tts_engine.py
+1
-1
paddlespeech/t2s/exps/syn_utils.py
paddlespeech/t2s/exps/syn_utils.py
+1
-1
paddlespeech/t2s/exps/transformer_tts/preprocess.py
paddlespeech/t2s/exps/transformer_tts/preprocess.py
+1
-1
paddlespeech/t2s/exps/transformer_tts/synthesize_e2e.py
paddlespeech/t2s/exps/transformer_tts/synthesize_e2e.py
+1
-1
paddlespeech/t2s/frontend/__init__.py
paddlespeech/t2s/frontend/__init__.py
+0
-1
paddlespeech/t2s/frontend/en_frontend.py
paddlespeech/t2s/frontend/en_frontend.py
+1
-0
paddlespeech/t2s/frontend/mix_frontend.py
paddlespeech/t2s/frontend/mix_frontend.py
+4
-4
paddlespeech/t2s/frontend/phonectic.py
paddlespeech/t2s/frontend/phonectic.py
+4
-1
未找到文件。
paddlespeech/server/engine/tts/online/onnx/tts_engine.py
浏览文件 @
40124ed3
...
...
@@ -28,7 +28,7 @@ from paddlespeech.server.utils.audio_process import float2pcm
from
paddlespeech.server.utils.onnx_infer
import
get_sess
from
paddlespeech.server.utils.util
import
denorm
from
paddlespeech.server.utils.util
import
get_chunks
from
paddlespeech.t2s.frontend
import
English
from
paddlespeech.t2s.frontend
.en_frontend
import
English
from
paddlespeech.t2s.frontend.zh_frontend
import
Frontend
__all__
=
[
'TTSEngine'
,
'PaddleTTSConnectionHandler'
]
...
...
paddlespeech/server/engine/tts/online/python/tts_engine.py
浏览文件 @
40124ed3
...
...
@@ -29,7 +29,7 @@ from paddlespeech.server.engine.base_engine import BaseEngine
from
paddlespeech.server.utils.audio_process
import
float2pcm
from
paddlespeech.server.utils.util
import
denorm
from
paddlespeech.server.utils.util
import
get_chunks
from
paddlespeech.t2s.frontend
import
English
from
paddlespeech.t2s.frontend
.en_frontend
import
English
from
paddlespeech.t2s.frontend.zh_frontend
import
Frontend
from
paddlespeech.t2s.modules.normalizer
import
ZScore
...
...
paddlespeech/server/engine/tts/paddleinference/tts_engine.py
浏览文件 @
40124ed3
...
...
@@ -32,7 +32,7 @@ from paddlespeech.server.utils.errors import ErrorCode
from
paddlespeech.server.utils.exception
import
ServerBaseException
from
paddlespeech.server.utils.paddle_predictor
import
init_predictor
from
paddlespeech.server.utils.paddle_predictor
import
run_model
from
paddlespeech.t2s.frontend
import
English
from
paddlespeech.t2s.frontend
.en_frontend
import
English
from
paddlespeech.t2s.frontend.zh_frontend
import
Frontend
__all__
=
[
'TTSEngine'
,
'PaddleTTSConnectionHandler'
]
...
...
paddlespeech/t2s/exps/syn_utils.py
浏览文件 @
40124ed3
...
...
@@ -33,8 +33,8 @@ from yacs.config import CfgNode
from
paddlespeech.t2s.datasets.am_batch_fn
import
*
from
paddlespeech.t2s.datasets.data_table
import
DataTable
from
paddlespeech.t2s.datasets.vocoder_batch_fn
import
Clip_static
from
paddlespeech.t2s.frontend
import
English
from
paddlespeech.t2s.frontend.canton_frontend
import
CantonFrontend
from
paddlespeech.t2s.frontend.en_frontend
import
English
from
paddlespeech.t2s.frontend.mix_frontend
import
MixFrontend
from
paddlespeech.t2s.frontend.sing_frontend
import
SingFrontend
from
paddlespeech.t2s.frontend.zh_frontend
import
Frontend
...
...
paddlespeech/t2s/exps/transformer_tts/preprocess.py
浏览文件 @
40124ed3
...
...
@@ -27,7 +27,7 @@ import yaml
from
yacs.config
import
CfgNode
as
Configuration
from
paddlespeech.t2s.datasets.get_feats
import
LogMelFBank
from
paddlespeech.t2s.frontend
import
English
from
paddlespeech.t2s.frontend
.en_frontend
import
English
def
get_lj_sentences
(
file_name
,
frontend
):
...
...
paddlespeech/t2s/exps/transformer_tts/synthesize_e2e.py
浏览文件 @
40124ed3
...
...
@@ -21,7 +21,7 @@ import soundfile as sf
import
yaml
from
yacs.config
import
CfgNode
from
paddlespeech.t2s.frontend
import
English
from
paddlespeech.t2s.frontend
.en_frontend
import
English
from
paddlespeech.t2s.models.transformer_tts
import
TransformerTTS
from
paddlespeech.t2s.models.transformer_tts
import
TransformerTTSInference
from
paddlespeech.t2s.models.waveflow
import
ConditionalWaveFlow
...
...
paddlespeech/t2s/frontend/__init__.py
浏览文件 @
40124ed3
...
...
@@ -13,7 +13,6 @@
# limitations under the License.
from
.generate_lexicon
import
*
from
.normalizer
import
*
from
.phonectic
import
*
from
.punctuation
import
*
from
.ssml
import
*
from
.tone_sandhi
import
*
...
...
paddlespeech/t2s/frontend/en_frontend.py
0 → 100644
浏览文件 @
40124ed3
from
.phonectic
import
English
paddlespeech/t2s/frontend/mix_frontend.py
浏览文件 @
40124ed3
...
...
@@ -18,9 +18,9 @@ from typing import List
import
numpy
as
np
import
paddle
from
paddlespeech.t2s.frontend
import
English
from
paddlespeech.t2s.frontend
.en_frontend
import
EnFrontend
from
paddlespeech.t2s.frontend.ssml.xml_processor
import
MixTextProcessor
from
paddlespeech.t2s.frontend.zh_frontend
import
Frontend
from
paddlespeech.t2s.frontend.zh_frontend
import
Zh
Frontend
class
MixFrontend
():
...
...
@@ -29,9 +29,9 @@ class MixFrontend():
phone_vocab_path
=
None
,
tone_vocab_path
=
None
):
self
.
zh_frontend
=
Frontend
(
self
.
zh_frontend
=
Zh
Frontend
(
phone_vocab_path
=
phone_vocab_path
,
tone_vocab_path
=
tone_vocab_path
)
self
.
en_frontend
=
En
glish
(
phone_vocab_path
=
phone_vocab_path
)
self
.
en_frontend
=
En
Frontend
(
phone_vocab_path
=
phone_vocab_path
)
self
.
sp_id
=
self
.
zh_frontend
.
vocab_phones
[
"sp"
]
self
.
sp_id_numpy
=
np
.
array
([
self
.
sp_id
])
self
.
sp_id_tensor
=
paddle
.
to_tensor
([
self
.
sp_id
])
...
...
paddlespeech/t2s/frontend/phonectic.py
浏览文件 @
40124ed3
...
...
@@ -86,8 +86,8 @@ class English(Phonetics):
sentence
:
str
,
merge_sentences
:
bool
=
False
,
to_tensor
:
bool
=
True
)
->
paddle
.
Tensor
:
result
=
{}
sentences
=
self
.
text_normalizer
.
_split
(
sentence
,
lang
=
"en"
)
phones_list
=
[]
temp_phone_ids
=
[]
for
sentence
in
sentences
:
...
...
@@ -118,7 +118,10 @@ class English(Phonetics):
if
to_tensor
:
phone_ids
=
paddle
.
to_tensor
(
phone_ids
)
temp_phone_ids
.
append
(
phone_ids
)
result
=
{}
result
[
"phone_ids"
]
=
temp_phone_ids
return
result
def
numericalize
(
self
,
phonemes
):
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录