diff --git a/PaddleAudio/.gitignore b/paddleaudio/.gitignore similarity index 100% rename from PaddleAudio/.gitignore rename to paddleaudio/.gitignore diff --git a/PaddleAudio/.pre-commit-config.yaml b/paddleaudio/.pre-commit-config.yaml similarity index 100% rename from PaddleAudio/.pre-commit-config.yaml rename to paddleaudio/.pre-commit-config.yaml diff --git a/PaddleAudio/.style.yapf b/paddleaudio/.style.yapf similarity index 100% rename from PaddleAudio/.style.yapf rename to paddleaudio/.style.yapf diff --git a/PaddleAudio/LICENSE b/paddleaudio/LICENSE similarity index 100% rename from PaddleAudio/LICENSE rename to paddleaudio/LICENSE diff --git a/PaddleAudio/README.md b/paddleaudio/README.md similarity index 100% rename from PaddleAudio/README.md rename to paddleaudio/README.md diff --git a/PaddleAudio/examples/panns/README.md b/paddleaudio/examples/panns/README.md similarity index 100% rename from PaddleAudio/examples/panns/README.md rename to paddleaudio/examples/panns/README.md diff --git a/PaddleAudio/examples/panns/assets/audioset_labels.txt b/paddleaudio/examples/panns/assets/audioset_labels.txt similarity index 100% rename from PaddleAudio/examples/panns/assets/audioset_labels.txt rename to paddleaudio/examples/panns/assets/audioset_labels.txt diff --git a/PaddleAudio/examples/panns/audio_tag.py b/paddleaudio/examples/panns/audio_tag.py similarity index 99% rename from PaddleAudio/examples/panns/audio_tag.py rename to paddleaudio/examples/panns/audio_tag.py index 6f08cd1ce..eea14bba9 100644 --- a/PaddleAudio/examples/panns/audio_tag.py +++ b/paddleaudio/examples/panns/audio_tag.py @@ -17,6 +17,7 @@ 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 diff --git a/PaddleAudio/examples/panns/parse_result.py b/paddleaudio/examples/panns/parse_result.py similarity index 99% rename from PaddleAudio/examples/panns/parse_result.py rename to paddleaudio/examples/panns/parse_result.py index 056c573f2..667489dda 100644 --- a/PaddleAudio/examples/panns/parse_result.py +++ b/paddleaudio/examples/panns/parse_result.py @@ -17,6 +17,7 @@ import os from typing import Dict import numpy as np + from paddleaudio.utils import logger # yapf: disable diff --git a/PaddleAudio/examples/sound_classification/README.md b/paddleaudio/examples/sound_classification/README.md similarity index 100% rename from PaddleAudio/examples/sound_classification/README.md rename to paddleaudio/examples/sound_classification/README.md diff --git a/PaddleAudio/examples/sound_classification/deploy/python/predict.py b/paddleaudio/examples/sound_classification/deploy/python/predict.py similarity index 99% rename from PaddleAudio/examples/sound_classification/deploy/python/predict.py rename to paddleaudio/examples/sound_classification/deploy/python/predict.py index a99b8980c..f41307c8d 100644 --- a/PaddleAudio/examples/sound_classification/deploy/python/predict.py +++ b/paddleaudio/examples/sound_classification/deploy/python/predict.py @@ -16,10 +16,11 @@ 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() diff --git a/PaddleAudio/examples/sound_classification/export_model.py b/paddleaudio/examples/sound_classification/export_model.py similarity index 99% rename from PaddleAudio/examples/sound_classification/export_model.py rename to paddleaudio/examples/sound_classification/export_model.py index 1be7b27a3..f36ae3053 100644 --- a/PaddleAudio/examples/sound_classification/export_model.py +++ b/paddleaudio/examples/sound_classification/export_model.py @@ -16,6 +16,7 @@ import os import paddle from model import SoundClassifier + from paddleaudio.datasets import ESC50 from paddleaudio.models.panns import cnn14 diff --git a/PaddleAudio/examples/sound_classification/model.py b/paddleaudio/examples/sound_classification/model.py similarity index 100% rename from PaddleAudio/examples/sound_classification/model.py rename to paddleaudio/examples/sound_classification/model.py diff --git a/PaddleAudio/examples/sound_classification/predict.py b/paddleaudio/examples/sound_classification/predict.py similarity index 99% rename from PaddleAudio/examples/sound_classification/predict.py rename to paddleaudio/examples/sound_classification/predict.py index 30d141cd0..af15e8044 100644 --- a/PaddleAudio/examples/sound_classification/predict.py +++ b/paddleaudio/examples/sound_classification/predict.py @@ -17,6 +17,7 @@ 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 diff --git a/PaddleAudio/examples/sound_classification/train.py b/paddleaudio/examples/sound_classification/train.py similarity index 99% rename from PaddleAudio/examples/sound_classification/train.py rename to paddleaudio/examples/sound_classification/train.py index e3b5e2ae0..bd10bc9fd 100644 --- a/PaddleAudio/examples/sound_classification/train.py +++ b/paddleaudio/examples/sound_classification/train.py @@ -16,6 +16,7 @@ import os import paddle from model import SoundClassifier + from paddleaudio.datasets import ESC50 from paddleaudio.models.panns import cnn14 from paddleaudio.utils import logger diff --git a/PaddleAudio/paddleaudio/__init__.py b/paddleaudio/paddleaudio/__init__.py similarity index 100% rename from PaddleAudio/paddleaudio/__init__.py rename to paddleaudio/paddleaudio/__init__.py diff --git a/PaddleAudio/paddleaudio/backends/__init__.py b/paddleaudio/paddleaudio/backends/__init__.py similarity index 100% rename from PaddleAudio/paddleaudio/backends/__init__.py rename to paddleaudio/paddleaudio/backends/__init__.py diff --git a/PaddleAudio/paddleaudio/backends/audio.py b/paddleaudio/paddleaudio/backends/audio.py similarity index 100% rename from PaddleAudio/paddleaudio/backends/audio.py rename to paddleaudio/paddleaudio/backends/audio.py diff --git a/PaddleAudio/paddleaudio/datasets/__init__.py b/paddleaudio/paddleaudio/datasets/__init__.py similarity index 100% rename from PaddleAudio/paddleaudio/datasets/__init__.py rename to paddleaudio/paddleaudio/datasets/__init__.py diff --git a/PaddleAudio/paddleaudio/datasets/aishell.py b/paddleaudio/paddleaudio/datasets/aishell.py similarity index 100% rename from PaddleAudio/paddleaudio/datasets/aishell.py rename to paddleaudio/paddleaudio/datasets/aishell.py diff --git a/PaddleAudio/paddleaudio/datasets/dataset.py b/paddleaudio/paddleaudio/datasets/dataset.py similarity index 100% rename from PaddleAudio/paddleaudio/datasets/dataset.py rename to paddleaudio/paddleaudio/datasets/dataset.py diff --git a/PaddleAudio/paddleaudio/datasets/dcase.py b/paddleaudio/paddleaudio/datasets/dcase.py similarity index 100% rename from PaddleAudio/paddleaudio/datasets/dcase.py rename to paddleaudio/paddleaudio/datasets/dcase.py diff --git a/PaddleAudio/paddleaudio/datasets/esc50.py b/paddleaudio/paddleaudio/datasets/esc50.py similarity index 100% rename from PaddleAudio/paddleaudio/datasets/esc50.py rename to paddleaudio/paddleaudio/datasets/esc50.py diff --git a/PaddleAudio/paddleaudio/datasets/gtzan.py b/paddleaudio/paddleaudio/datasets/gtzan.py similarity index 100% rename from PaddleAudio/paddleaudio/datasets/gtzan.py rename to paddleaudio/paddleaudio/datasets/gtzan.py diff --git a/PaddleAudio/paddleaudio/datasets/librispeech.py b/paddleaudio/paddleaudio/datasets/librispeech.py similarity index 100% rename from PaddleAudio/paddleaudio/datasets/librispeech.py rename to paddleaudio/paddleaudio/datasets/librispeech.py diff --git a/PaddleAudio/paddleaudio/datasets/ravdess.py b/paddleaudio/paddleaudio/datasets/ravdess.py similarity index 100% rename from PaddleAudio/paddleaudio/datasets/ravdess.py rename to paddleaudio/paddleaudio/datasets/ravdess.py diff --git a/PaddleAudio/paddleaudio/datasets/tess.py b/paddleaudio/paddleaudio/datasets/tess.py similarity index 100% rename from PaddleAudio/paddleaudio/datasets/tess.py rename to paddleaudio/paddleaudio/datasets/tess.py diff --git a/PaddleAudio/paddleaudio/datasets/urban_sound.py b/paddleaudio/paddleaudio/datasets/urban_sound.py similarity index 100% rename from PaddleAudio/paddleaudio/datasets/urban_sound.py rename to paddleaudio/paddleaudio/datasets/urban_sound.py diff --git a/PaddleAudio/paddleaudio/features/__init__.py b/paddleaudio/paddleaudio/features/__init__.py similarity index 100% rename from PaddleAudio/paddleaudio/features/__init__.py rename to paddleaudio/paddleaudio/features/__init__.py diff --git a/PaddleAudio/paddleaudio/features/augment.py b/paddleaudio/paddleaudio/features/augment.py similarity index 99% rename from PaddleAudio/paddleaudio/features/augment.py rename to paddleaudio/paddleaudio/features/augment.py index 7556bb3c9..653e18071 100644 --- a/PaddleAudio/paddleaudio/features/augment.py +++ b/paddleaudio/paddleaudio/features/augment.py @@ -15,6 +15,7 @@ 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 diff --git a/PaddleAudio/paddleaudio/features/core.py b/paddleaudio/paddleaudio/features/core.py similarity index 99% rename from PaddleAudio/paddleaudio/features/core.py rename to paddleaudio/paddleaudio/features/core.py index f53f60f31..7b764797f 100644 --- a/PaddleAudio/paddleaudio/features/core.py +++ b/paddleaudio/paddleaudio/features/core.py @@ -20,9 +20,10 @@ import numpy as np import scipy from numpy import ndarray as array from numpy.lib.stride_tricks import as_strided -from paddleaudio.utils import ParameterError from scipy.signal import get_window +from paddleaudio.utils import ParameterError + __all__ = [ 'stft', 'mfcc', diff --git a/PaddleAudio/paddleaudio/models/__init__.py b/paddleaudio/paddleaudio/models/__init__.py similarity index 100% rename from PaddleAudio/paddleaudio/models/__init__.py rename to paddleaudio/paddleaudio/models/__init__.py diff --git a/PaddleAudio/paddleaudio/models/panns.py b/paddleaudio/paddleaudio/models/panns.py similarity index 100% rename from PaddleAudio/paddleaudio/models/panns.py rename to paddleaudio/paddleaudio/models/panns.py diff --git a/PaddleAudio/paddleaudio/utils/__init__.py b/paddleaudio/paddleaudio/utils/__init__.py similarity index 100% rename from PaddleAudio/paddleaudio/utils/__init__.py rename to paddleaudio/paddleaudio/utils/__init__.py diff --git a/PaddleAudio/paddleaudio/utils/download.py b/paddleaudio/paddleaudio/utils/download.py similarity index 100% rename from PaddleAudio/paddleaudio/utils/download.py rename to paddleaudio/paddleaudio/utils/download.py diff --git a/PaddleAudio/paddleaudio/utils/env.py b/paddleaudio/paddleaudio/utils/env.py similarity index 100% rename from PaddleAudio/paddleaudio/utils/env.py rename to paddleaudio/paddleaudio/utils/env.py diff --git a/PaddleAudio/paddleaudio/utils/error.py b/paddleaudio/paddleaudio/utils/error.py similarity index 100% rename from PaddleAudio/paddleaudio/utils/error.py rename to paddleaudio/paddleaudio/utils/error.py diff --git a/PaddleAudio/paddleaudio/utils/log.py b/paddleaudio/paddleaudio/utils/log.py similarity index 100% rename from PaddleAudio/paddleaudio/utils/log.py rename to paddleaudio/paddleaudio/utils/log.py diff --git a/PaddleAudio/paddleaudio/utils/time.py b/paddleaudio/paddleaudio/utils/time.py similarity index 100% rename from PaddleAudio/paddleaudio/utils/time.py rename to paddleaudio/paddleaudio/utils/time.py diff --git a/PaddleAudio/requirements.txt b/paddleaudio/requirements.txt similarity index 100% rename from PaddleAudio/requirements.txt rename to paddleaudio/requirements.txt diff --git a/PaddleAudio/setup.py b/paddleaudio/setup.py similarity index 100% rename from PaddleAudio/setup.py rename to paddleaudio/setup.py diff --git a/PaddleAudio/test/README.md b/paddleaudio/test/README.md similarity index 100% rename from PaddleAudio/test/README.md rename to paddleaudio/test/README.md diff --git a/PaddleAudio/test/unit_test/test_backend.py b/paddleaudio/test/unit_test/test_backend.py similarity index 99% rename from PaddleAudio/test/unit_test/test_backend.py rename to paddleaudio/test/unit_test/test_backend.py index 1bf1504e0..a0d5d2dbd 100644 --- a/PaddleAudio/test/unit_test/test_backend.py +++ b/paddleaudio/test/unit_test/test_backend.py @@ -13,9 +13,10 @@ # limitations under the License. import librosa import numpy as np -import paddleaudio import pytest +import paddleaudio + TEST_FILE = './test/data/test_audio.wav' diff --git a/PaddleAudio/test/unit_test/test_features.py b/paddleaudio/test/unit_test/test_features.py similarity index 99% rename from PaddleAudio/test/unit_test/test_features.py rename to paddleaudio/test/unit_test/test_features.py index 9e4e29cb3..4d68c1b51 100644 --- a/PaddleAudio/test/unit_test/test_features.py +++ b/paddleaudio/test/unit_test/test_features.py @@ -13,9 +13,10 @@ # limitations under the License. import librosa import numpy as np -import paddleaudio as pa import pytest +import paddleaudio as pa + @pytest.mark.filterwarnings("ignore::DeprecationWarning") def load_audio():