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
fx
2023-06-20 20:55:47 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2023-06-20 20:55:47 +0800
Commit
81579bbdddfe7090d1a2616b8d4c8d565d0d0774
81579bbd
1 parent
d82251cb
fix numpy bug (#181)
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
python-api-examples/streaming_server.py
python-api-examples/streaming_server.py
查看文件 @
81579bb
...
...
@@ -556,8 +556,8 @@ class StreamingServer(object):
await
socket
.
send
(
json
.
dumps
(
message
))
tail_padding
=
np
.
rand
(
int
(
self
.
sample_rate
*
0.3
),
dtype
=
np
.
float32
)
stream
.
accept_waveform
(
sampling_rate
=
self
.
sample_rate
,
waveform
=
tail_padding
)
tail_padding
=
np
.
zeros
(
int
(
self
.
sample_rate
*
0.3
))
.
astype
(
np
.
float32
)
stream
.
accept_waveform
(
sample_rate
=
self
.
sample_rate
,
waveform
=
tail_padding
)
stream
.
input_finished
()
while
self
.
recognizer
.
is_ready
(
stream
):
await
self
.
compute_and_decode
(
stream
)
...
...
请
注册
或
登录
后发表评论