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-08-09 15:33:01 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2023-08-09 15:33:01 +0800
Commit
92bfee04245a05d760ffba9da0bd230a76701ffb
92bfee04
1 parent
46062bb6
Flush stderr on write (#248)
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
4 行增加
和
1 行删除
sherpa-onnx/csrc/sherpa-onnx-alsa.cc
sherpa-onnx/csrc/sherpa-onnx-microphone.cc
sherpa-onnx/csrc/sherpa-onnx-alsa.cc
查看文件 @
92bfee0
...
...
@@ -142,6 +142,7 @@ as the device_name.
[](
auto
c
)
{
return
std
::
tolower
(
c
);
});
display
.
Print
(
segment_index
,
text
);
fflush
(
stderr
);
}
if
(
is_endpoint
)
{
...
...
sherpa-onnx/csrc/sherpa-onnx-microphone.cc
查看文件 @
92bfee0
...
...
@@ -139,12 +139,14 @@ for a list of pre-trained models to download.
std
::
transform
(
text
.
begin
(),
text
.
end
(),
text
.
begin
(),
[](
auto
c
)
{
return
std
::
tolower
(
c
);
});
display
.
Print
(
segment_index
,
text
);
fprintf
(
stderr
,
"
\r
%d: %s"
,
segment_index
,
text
.
c_str
());
fflush
(
stderr
);
}
if
(
is_endpoint
)
{
if
(
!
text
.
empty
())
{
++
segment_index
;
fprintf
(
stderr
,
"
\n
"
);
}
recognizer
.
Reset
(
s
.
get
());
...
...
请
注册
或
登录
后发表评论