Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
54f06041
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看板
提交
54f06041
编写于
2月 25, 2022
作者:
H
Hui Zhang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add tests, metric dir and format, test=doc
上级
c437a7c5
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
111 addition
and
24 deletion
+111
-24
paddleaudio/CHANGELOG.md
paddleaudio/CHANGELOG.md
+1
-1
paddleaudio/paddleaudio/backends/soundfile_backend.py
paddleaudio/paddleaudio/backends/soundfile_backend.py
+13
-0
paddleaudio/paddleaudio/backends/sox_backend.py
paddleaudio/paddleaudio/backends/sox_backend.py
+13
-0
paddleaudio/paddleaudio/features/__init__.py
paddleaudio/paddleaudio/features/__init__.py
+2
-3
paddleaudio/paddleaudio/functional/__init__.py
paddleaudio/paddleaudio/functional/__init__.py
+13
-0
paddleaudio/paddleaudio/functional/functional.py
paddleaudio/paddleaudio/functional/functional.py
+2
-3
paddleaudio/paddleaudio/functional/window.py
paddleaudio/paddleaudio/functional/window.py
+1
-1
paddleaudio/paddleaudio/io/__init__.py
paddleaudio/paddleaudio/io/__init__.py
+16
-3
paddleaudio/paddleaudio/kaldi/__init__.py
paddleaudio/paddleaudio/kaldi/__init__.py
+13
-0
paddleaudio/paddleaudio/metric/__init__.py
paddleaudio/paddleaudio/metric/__init__.py
+13
-0
paddleaudio/paddleaudio/sox_effects/__init__.py
paddleaudio/paddleaudio/sox_effects/__init__.py
+13
-0
paddleaudio/paddleaudio/utils/__init__.py
paddleaudio/paddleaudio/utils/__init__.py
+6
-11
paddleaudio/paddleaudio/utils/download.py
paddleaudio/paddleaudio/utils/download.py
+1
-0
paddleaudio/paddleaudio/utils/env.py
paddleaudio/paddleaudio/utils/env.py
+3
-2
paddleaudio/paddleaudio/utils/time.py
paddleaudio/paddleaudio/utils/time.py
+1
-0
paddleaudio/tests/.gitkeep
paddleaudio/tests/.gitkeep
+0
-0
未找到文件。
paddleaudio/CHANGELOG.md
浏览文件 @
54f06041
# Changelog
Date: 2022-2-25, Author: Hui Zhang.
-
Refactor architecture.
\ No newline at end of file
-
Refactor architecture.
paddleaudio/paddleaudio/backends/soundfile_backend.py
浏览文件 @
54f06041
# 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.
paddleaudio/paddleaudio/backends/sox_backend.py
浏览文件 @
54f06041
# 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.
paddleaudio/paddleaudio/features/__init__.py
浏览文件 @
54f06041
...
...
@@ -11,7 +11,6 @@
# 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.
from
.librosa
import
Spectrogram
from
.librosa
import
LogMelSpectrogram
from
.librosa
import
MelSpectrogram
from
.librosa
import
LogMelSpectrogram
\ No newline at end of file
from
.librosa
import
Spectrogram
paddleaudio/paddleaudio/functional/__init__.py
浏览文件 @
54f06041
# 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.
paddleaudio/paddleaudio/functional/functional.py
浏览文件 @
54f06041
...
...
@@ -23,9 +23,8 @@ from numpy import ndarray as array
from
numpy.lib.stride_tricks
import
as_strided
from
scipy
import
signal
from
..utils
import
ParameterError
from
..backends
import
depth_convert
from
..utils
import
ParameterError
__all__
=
[
# dsp
...
...
@@ -726,4 +725,4 @@ def random_crop2d(s: array, crop_len: int, tempo_axis: int=0) -> array:
sli
=
[
slice
(
None
)
for
i
in
range
(
s
.
ndim
)]
sli
[
tempo_axis
]
=
slice
(
idx
,
idx
+
crop_len
)
out
=
s
[
tuple
(
sli
)]
return
out
\ No newline at end of file
return
out
paddleaudio/paddleaudio/functional/window.py
浏览文件 @
54f06041
...
...
@@ -20,7 +20,7 @@ from paddle import Tensor
__all__
=
[
'get_window'
,
# windows
'taylor'
,
'hamming'
,
...
...
paddleaudio/paddleaudio/io/__init__.py
浏览文件 @
54f06041
from
.audio
import
save_wav
# 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.
from
.audio
import
depth_convert
from
.audio
import
load
from
.audio
import
normalize
from
.audio
import
to_mono
from
.audio
import
resample
from
.audio
import
depth_convert
\ No newline at end of file
from
.audio
import
save_wav
from
.audio
import
to_mono
paddleaudio/paddleaudio/kaldi/__init__.py
浏览文件 @
54f06041
# 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.
paddleaudio/paddleaudio/metric/__init__.py
0 → 100644
浏览文件 @
54f06041
# 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.
paddleaudio/paddleaudio/sox_effects/__init__.py
浏览文件 @
54f06041
# 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.
paddleaudio/paddleaudio/utils/__init__.py
浏览文件 @
54f06041
...
...
@@ -11,20 +11,15 @@
# 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.
from
.env
import
USER_HOME
from
.env
import
PPAUDIO_HOME
from
.env
import
MODEL_HOME
from
.env
import
DATA_HOME
from
.download
import
decompress
from
.download
import
download_and_decompress
from
.download
import
load_state_dict_from_url
from
.env
import
DATA_HOME
from
.env
import
MODEL_HOME
from
.env
import
PPAUDIO_HOME
from
.env
import
USER_HOME
from
.error
import
ParameterError
from
.log
import
logger
from
.log
import
Logger
from
.time
import
Timer
from
.log
import
logger
from
.time
import
seconds_to_hms
from
.time
import
Timer
paddleaudio/paddleaudio/utils/download.py
浏览文件 @
54f06041
...
...
@@ -28,6 +28,7 @@ __all__ = [
'load_state_dict_from_url'
,
]
def
decompress
(
file
:
str
):
"""
Extracts all files from a compressed file.
...
...
paddleaudio/paddleaudio/utils/env.py
浏览文件 @
54f06041
...
...
@@ -23,10 +23,11 @@ import os
__all__
=
[
'USER_HOME'
,
'PPAUDIO_HOME'
,
'MODEL_HOME'
,
'DATA_HOME'
,
'MODEL_HOME'
,
'DATA_HOME'
,
]
def
_get_user_home
():
return
os
.
path
.
expanduser
(
'~'
)
...
...
paddleaudio/paddleaudio/utils/time.py
浏览文件 @
54f06041
...
...
@@ -19,6 +19,7 @@ __all__ = [
'seconds_to_hms'
,
]
class
Timer
(
object
):
'''Calculate runing speed and estimated time of arrival(ETA)'''
...
...
paddleaudio/tests/.gitkeep
0 → 100644
浏览文件 @
54f06041
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录