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
2023-12-15 17:44:33 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2023-12-15 17:44:33 +0800
Commit
03ff9db56e9ed7c0252ae036be333de5db75a746
03ff9db5
1 parent
ad72e7af
Keep multiple threads from calling into espeak-ng at the same time (#489)
显示空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
7 行增加
和
0 行删除
sherpa-onnx/csrc/piper-phonemize-lexicon.cc
sherpa-onnx/csrc/piper-phonemize-lexicon.cc
查看文件 @
03ff9db
...
...
@@ -223,7 +223,14 @@ std::vector<std::vector<int64_t>> PiperPhonemizeLexicon::ConvertTextToTokenIds(
config
.
voice
=
voice
;
// e.g., voice is en-us
std
::
vector
<
std
::
vector
<
piper
::
Phoneme
>>
phonemes
;
static
std
::
mutex
espeak_mutex
;
{
std
::
lock_guard
<
std
::
mutex
>
lock
(
espeak_mutex
);
// keep multi threads from calling into piper::phonemize_eSpeak
piper
::
phonemize_eSpeak
(
text
,
config
,
phonemes
);
}
std
::
vector
<
std
::
vector
<
int64_t
>>
ans
;
...
...
请
注册
或
登录
后发表评论