Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
903cc67a
D
DeepSpeech
项目概览
PaddlePaddle
/
DeepSpeech
12 个月 前同步成功
通知
205
Star
8425
Fork
1598
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
245
列表
看板
标记
里程碑
合并请求
3
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
DeepSpeech
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
245
Issue
245
列表
看板
标记
里程碑
合并请求
3
合并请求
3
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
903cc67a
编写于
4月 26, 2022
作者:
H
Hui Zhang
提交者:
GitHub
4月 26, 2022
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1801 from Honei/v0.3
[R1.0]update the streaming output and punc default ip, port
上级
0a9811c8
e844e0e0
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
5 addition
and
6 deletion
+5
-6
paddlespeech/server/bin/paddlespeech_client.py
paddlespeech/server/bin/paddlespeech_client.py
+3
-4
paddlespeech/server/utils/audio_handler.py
paddlespeech/server/utils/audio_handler.py
+2
-2
未找到文件。
paddlespeech/server/bin/paddlespeech_client.py
浏览文件 @
903cc67a
...
...
@@ -353,8 +353,8 @@ class ASRClientExecutor(BaseExecutor):
lang
:
str
=
"zh_cn"
,
audio_format
:
str
=
"wav"
,
protocol
:
str
=
"http"
,
punc_server_ip
:
str
=
"127.0.0.1"
,
punc_server_port
:
int
=
8091
):
punc_server_ip
:
str
=
None
,
punc_server_port
:
int
=
None
):
"""Python API to call an executor.
Args:
...
...
@@ -487,7 +487,6 @@ class TextClientExecutor(BaseExecutor):
input_
=
args
.
input
server_ip
=
args
.
server_ip
port
=
args
.
port
output
=
args
.
output
try
:
time_start
=
time
.
time
()
...
...
@@ -522,4 +521,4 @@ class TextClientExecutor(BaseExecutor):
res
=
requests
.
post
(
url
=
url
,
data
=
json
.
dumps
(
request
))
response_dict
=
res
.
json
()
punc_text
=
response_dict
[
"result"
][
"punc_text"
]
return
punc_text
return
punc_text
\ No newline at end of file
paddlespeech/server/utils/audio_handler.py
浏览文件 @
903cc67a
...
...
@@ -63,7 +63,7 @@ class TextHttpHandler:
response_dict
=
res
.
json
()
punc_text
=
response_dict
[
"result"
][
"punc_text"
]
except
Exception
as
e
:
logger
.
error
(
f
"Call punctuation
{
self
.
url
}
occurs"
)
logger
.
error
(
f
"Call punctuation
{
self
.
url
}
occurs
error
"
)
logger
.
error
(
e
)
punc_text
=
text
...
...
@@ -176,7 +176,7 @@ class ASRWsAudioHandler:
{
"name"
:
"test.wav"
,
"signal"
:
"end"
,
"nbest"
:
5
"nbest"
:
1
},
sort_keys
=
True
,
indent
=
4
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录