Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
9c4187d9
D
DeepSpeech
项目概览
PaddlePaddle
/
DeepSpeech
11 个月 前同步成功
通知
204
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,发现更多精彩内容 >>
未验证
提交
9c4187d9
编写于
4月 07, 2022
作者:
H
Hui Zhang
提交者:
GitHub
4月 07, 2022
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1675 from KPatr1ck/audio
[Punc] Update RESULTS.md.
上级
dd9b7648
80b1fb98
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
40 addition
and
1 deletion
+40
-1
examples/iwslt2012/punc0/README.md
examples/iwslt2012/punc0/README.md
+1
-1
examples/iwslt2012/punc0/RESULTS.md
examples/iwslt2012/punc0/RESULTS.md
+9
-0
paddleaudio/paddleaudio/utils/numeric.py
paddleaudio/paddleaudio/utils/numeric.py
+30
-0
未找到文件。
examples/iwslt2012/punc0/README.md
浏览文件 @
9c4187d9
...
...
@@ -21,7 +21,7 @@
The pretrained model can be downloaded here
[
ernie_linear_p3_iwslt2012_zh_ckpt_0.1.1.zip
](
https://paddlespeech.bj.bcebos.com/text/ernie_linear_p3_iwslt2012_zh_ckpt_0.1.1.zip
)
.
### Test Result
-
Ernie
Linear
-
Ernie
| |COMMA | PERIOD | QUESTION | OVERALL|
|:-----:|:-----:|:-----:|:-----:|:-----:|
|Precision |0.510955 |0.526462 |0.820755 |0.619391|
...
...
examples/iwslt2012/punc0/RESULTS.md
0 → 100644
浏览文件 @
9c4187d9
# iwslt2012
## Ernie
| |COMMA | PERIOD | QUESTION | OVERALL|
|:-----:|:-----:|:-----:|:-----:|:-----:|
|Precision |0.510955 |0.526462 |0.820755 |0.619391|
|Recall |0.517433 |0.564179 |0.861386 |0.647666|
|F1 |0.514173 |0.544669 |0.840580 |0.633141|
paddleaudio/paddleaudio/utils/numeric.py
0 → 100644
浏览文件 @
9c4187d9
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import
numpy
as
np
def
pcm16to32
(
audio
:
np
.
ndarray
)
->
np
.
ndarray
:
"""pcm int16 to float32
Args:
audio (np.ndarray): Waveform with dtype of int16.
Returns:
np.ndarray: Waveform with dtype of float32.
"""
if
audio
.
dtype
==
np
.
int16
:
audio
=
audio
.
astype
(
"float32"
)
bits
=
np
.
iinfo
(
np
.
int16
).
bits
audio
=
audio
/
(
2
**
(
bits
-
1
))
return
audio
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录