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
eee
2023-03-31 22:26:47 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2023-03-31 22:26:47 +0800
Commit
c0620a1fe1829402ea346be10b0a8c33a6d7dae5
c0620a1f
1 parent
f69b4e93
fix garbled console output with chinese characters (#108)
显示空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
3 行增加
和
3 行删除
python-api-examples/speech-recognition-from-microphone-with-endpoint-detection.py
python-api-examples/speech-recognition-from-microphone.py
python-api-examples/speech-recognition-from-microphone-with-endpoint-detection.py
查看文件 @
c0620a1
...
...
@@ -125,10 +125,10 @@ def main():
if
result
and
(
last_result
!=
result
):
last_result
=
result
display
.
print
(
segment_id
,
result
)
print
(
"
\r
{}:{}"
.
format
(
segment_id
,
result
),
end
=
""
,
flush
=
True
)
if
is_endpoint
:
if
result
:
print
(
"
\r
{}:{}"
.
format
(
segment_id
,
result
),
flush
=
True
)
segment_id
+=
1
recognizer
.
reset
(
stream
)
...
...
python-api-examples/speech-recognition-from-microphone.py
查看文件 @
c0620a1
...
...
@@ -113,7 +113,7 @@ def main():
result
=
recognizer
.
get_result
(
stream
)
if
last_result
!=
result
:
last_result
=
result
display
.
print
(
-
1
,
result
)
print
(
"
\r
{}"
.
format
(
result
),
end
=
""
,
flush
=
True
)
if
__name__
==
"__main__"
:
...
...
请
注册
或
登录
后发表评论