Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
2a66c2c1
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看板
提交
2a66c2c1
编写于
11月 03, 2021
作者:
H
Hui Zhang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
format code
上级
bb5f9e7a
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
23 addition
and
19 deletion
+23
-19
audio/examples/panns/audio_tag.py
audio/examples/panns/audio_tag.py
+0
-1
audio/examples/panns/parse_result.py
audio/examples/panns/parse_result.py
+0
-1
audio/examples/sound_classification/deploy/python/predict.py
audio/examples/sound_classification/deploy/python/predict.py
+1
-2
audio/examples/sound_classification/export_model.py
audio/examples/sound_classification/export_model.py
+0
-1
audio/examples/sound_classification/predict.py
audio/examples/sound_classification/predict.py
+0
-1
audio/examples/sound_classification/train.py
audio/examples/sound_classification/train.py
+0
-1
audio/paddleaudio/features/augment.py
audio/paddleaudio/features/augment.py
+0
-1
audio/paddleaudio/features/core.py
audio/paddleaudio/features/core.py
+1
-2
audio/test/unit_test/test_backend.py
audio/test/unit_test/test_backend.py
+1
-2
audio/test/unit_test/test_features.py
audio/test/unit_test/test_features.py
+1
-2
paddlespeech/__init__.py
paddlespeech/__init__.py
+13
-0
paddlespeech/s2t/transform/transformation.py
paddlespeech/s2t/transform/transformation.py
+2
-1
paddlespeech/s2t/utils/dynamic_import.py
paddlespeech/s2t/utils/dynamic_import.py
+4
-3
third_party/README.md
third_party/README.md
+0
-1
未找到文件。
audio/examples/panns/audio_tag.py
浏览文件 @
2a66c2c1
...
...
@@ -17,7 +17,6 @@ from typing import List
import
numpy
as
np
import
paddle
from
paddleaudio.backends
import
load
as
load_audio
from
paddleaudio.features
import
melspectrogram
from
paddleaudio.models.panns
import
cnn14
...
...
audio/examples/panns/parse_result.py
浏览文件 @
2a66c2c1
...
...
@@ -17,7 +17,6 @@ import os
from
typing
import
Dict
import
numpy
as
np
from
paddleaudio.utils
import
logger
# yapf: disable
...
...
audio/examples/sound_classification/deploy/python/predict.py
浏览文件 @
2a66c2c1
...
...
@@ -16,11 +16,10 @@ import os
import
numpy
as
np
from
paddle
import
inference
from
scipy.special
import
softmax
from
paddleaudio.backends
import
load
as
load_audio
from
paddleaudio.datasets
import
ESC50
from
paddleaudio.features
import
melspectrogram
from
scipy.special
import
softmax
# yapf: disable
parser
=
argparse
.
ArgumentParser
()
...
...
audio/examples/sound_classification/export_model.py
浏览文件 @
2a66c2c1
...
...
@@ -16,7 +16,6 @@ import os
import
paddle
from
model
import
SoundClassifier
from
paddleaudio.datasets
import
ESC50
from
paddleaudio.models.panns
import
cnn14
...
...
audio/examples/sound_classification/predict.py
浏览文件 @
2a66c2c1
...
...
@@ -17,7 +17,6 @@ import numpy as np
import
paddle
import
paddle.nn.functional
as
F
from
model
import
SoundClassifier
from
paddleaudio.backends
import
load
as
load_audio
from
paddleaudio.datasets
import
ESC50
from
paddleaudio.features
import
melspectrogram
...
...
audio/examples/sound_classification/train.py
浏览文件 @
2a66c2c1
...
...
@@ -16,7 +16,6 @@ import os
import
paddle
from
model
import
SoundClassifier
from
paddleaudio.datasets
import
ESC50
from
paddleaudio.models.panns
import
cnn14
from
paddleaudio.utils
import
logger
...
...
audio/paddleaudio/features/augment.py
浏览文件 @
2a66c2c1
...
...
@@ -15,7 +15,6 @@ from typing import List
import
numpy
as
np
from
numpy
import
ndarray
as
array
from
paddleaudio.backends
import
depth_convert
from
paddleaudio.utils
import
ParameterError
...
...
audio/paddleaudio/features/core.py
浏览文件 @
2a66c2c1
...
...
@@ -20,9 +20,8 @@ import numpy as np
import
scipy
from
numpy
import
ndarray
as
array
from
numpy.lib.stride_tricks
import
as_strided
from
scipy.signal
import
get_window
from
paddleaudio.utils
import
ParameterError
from
scipy.signal
import
get_window
__all__
=
[
'stft'
,
...
...
audio/test/unit_test/test_backend.py
浏览文件 @
2a66c2c1
...
...
@@ -13,9 +13,8 @@
# limitations under the License.
import
librosa
import
numpy
as
np
import
pytest
import
paddleaudio
import
pytest
TEST_FILE
=
'./test/data/test_audio.wav'
...
...
audio/test/unit_test/test_features.py
浏览文件 @
2a66c2c1
...
...
@@ -13,9 +13,8 @@
# limitations under the License.
import
librosa
import
numpy
as
np
import
pytest
import
paddleaudio
as
pa
import
pytest
@
pytest
.
mark
.
filterwarnings
(
"ignore::DeprecationWarning"
)
...
...
paddlespeech/__init__.py
浏览文件 @
2a66c2c1
# Copyright (c) 2021 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.
paddlespeech/s2t/transform/transformation.py
浏览文件 @
2a66c2c1
...
...
@@ -45,7 +45,8 @@ import_alias = dict(
istft
=
"paddlespeech.s2t.transform.spectrogram:IStft"
,
stft2fbank
=
"paddlespeech.s2t.transform.spectrogram:Stft2LogMelSpectrogram"
,
wpe
=
"paddlespeech.s2t.transform.wpe:WPE"
,
channel_selector
=
"paddlespeech.s2t.transform.channel_selector:ChannelSelector"
,
)
channel_selector
=
"paddlespeech.s2t.transform.channel_selector:ChannelSelector"
,
)
class
Transformation
():
...
...
paddlespeech/s2t/utils/dynamic_import.py
浏览文件 @
2a66c2c1
...
...
@@ -35,9 +35,10 @@ def dynamic_import(import_path, alias=dict()):
:return: imported class
"""
if
import_path
not
in
alias
and
":"
not
in
import_path
:
raise
ValueError
(
"import_path should be one of {} or "
'include ":", e.g. "paddlespeech.s2t.models.u2:U2Model" : '
"{}"
.
format
(
set
(
alias
),
import_path
))
raise
ValueError
(
"import_path should be one of {} or "
'include ":", e.g. "paddlespeech.s2t.models.u2:U2Model" : '
"{}"
.
format
(
set
(
alias
),
import_path
))
if
":"
not
in
import_path
:
import_path
=
alias
[
import_path
]
...
...
third_party/README.md
浏览文件 @
2a66c2c1
...
...
@@ -25,4 +25,3 @@ licence: None
*
[
nnAudio
](
https://github.com/KinWaiCheuk/nnAudio.git
)
licence: MIT
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录