Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
xuning
/
sherpaonnx
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Fangjun Kuang
2024-12-31 15:14:56 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2024-12-31 15:14:56 +0800
Commit
d3538531c4659da7a16724096d4d1a62047d51cd
d3538531
1 parent
b2ad6f63
Fix initialize TTS in Python. (#1664)
显示空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
4 行增加
和
2 行删除
sherpa-onnx/python/csrc/offline-tts-model-config.cc
sherpa-onnx/python/csrc/offline-tts-model-config.cc
查看文件 @
d353853
...
...
@@ -23,8 +23,10 @@ void PybindOfflineTtsModelConfig(py::module *m) {
.
def
(
py
::
init
<
const
OfflineTtsVitsModelConfig
&
,
const
OfflineTtsMatchaModelConfig
&
,
int32_t
,
bool
,
const
std
::
string
&>
(),
py
::
arg
(
"vits"
),
py
::
arg
(
"matcha"
),
py
::
arg
(
"num_threads"
)
=
1
,
py
::
arg
(
"debug"
)
=
false
,
py
::
arg
(
"provider"
)
=
"cpu"
)
py
::
arg
(
"vits"
)
=
OfflineTtsVitsModelConfig
{},
py
::
arg
(
"matcha"
)
=
OfflineTtsMatchaModelConfig
{},
py
::
arg
(
"num_threads"
)
=
1
,
py
::
arg
(
"debug"
)
=
false
,
py
::
arg
(
"provider"
)
=
"cpu"
)
.
def_readwrite
(
"vits"
,
&
PyClass
::
vits
)
.
def_readwrite
(
"matcha"
,
&
PyClass
::
matcha
)
.
def_readwrite
(
"num_threads"
,
&
PyClass
::
num_threads
)
...
...
请
注册
或
登录
后发表评论