Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
3f690493
D
DeepSpeech
项目概览
PaddlePaddle
/
DeepSpeech
大约 2 年 前同步成功
通知
210
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看板
提交
3f690493
编写于
1月 27, 2022
作者:
W
WilliamZhang06
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix comments, test=doc
上级
169392cc
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
4 addition
and
4 deletion
+4
-4
speechserving/speechserving/conf/asr/asr.yaml
speechserving/speechserving/conf/asr/asr.yaml
+0
-1
speechserving/speechserving/restful/api.py
speechserving/speechserving/restful/api.py
+2
-1
speechserving/speechserving/utils/util.py
speechserving/speechserving/utils/util.py
+2
-2
未找到文件。
speechserving/speechserving/conf/asr/asr.yaml
浏览文件 @
3f690493
model
:
'
conformer_wenetspeech'
model
:
'
conformer_wenetspeech'
lang
:
'
conformer_wenetspeech'
lang
:
'
zh'
lang
:
'
zh'
sample_rate
:
16000
sample_rate
:
16000
decode_method
:
'
attention_rescoring'
decode_method
:
'
attention_rescoring'
speechserving/speechserving/restful/api.py
浏览文件 @
3f690493
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
from
typing
import
List
from
fastapi
import
APIRouter
from
fastapi
import
APIRouter
from
.tts_api
import
router
as
tts_router
from
.tts_api
import
router
as
tts_router
...
@@ -18,7 +19,7 @@ from .asr_api import router as asr_router
...
@@ -18,7 +19,7 @@ from .asr_api import router as asr_router
_router
=
APIRouter
()
_router
=
APIRouter
()
def
setup_router
(
api_list
:
l
ist
):
def
setup_router
(
api_list
:
L
ist
):
for
api_name
in
api_list
:
for
api_name
in
api_list
:
if
api_name
==
'asr'
:
if
api_name
==
'asr'
:
...
...
speechserving/speechserving/utils/util.py
浏览文件 @
3f690493
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
import
base64
import
base64
def
read
wav2base64
(
wav_file
):
def
wav2base64
(
wav_file
):
"""
"""
read wave file and covert to base64 string
read wave file and covert to base64 string
"""
"""
...
@@ -23,7 +23,7 @@ def readwav2base64(wav_file):
...
@@ -23,7 +23,7 @@ def readwav2base64(wav_file):
return
base64_string
return
base64_string
def
read
base64towav
(
base64_string
):
def
base64towav
(
base64_string
):
pass
pass
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录