diff --git a/paddlespeech/audio/datasets/esc50.py b/paddlespeech/audio/datasets/esc50.py index e7477d40e0b77914fbef69c77bff7dcd7adcee47..f5c7050f3fcc75dcb8fd53e7927cf92c22fb40e2 100644 --- a/paddlespeech/audio/datasets/esc50.py +++ b/paddlespeech/audio/datasets/esc50.py @@ -16,8 +16,8 @@ import os from typing import List from typing import Tuple +from ..utils import DATA_HOME from ..utils.download import download_and_decompress -from ..utils.env import DATA_HOME from .dataset import AudioClassificationDataset __all__ = ['ESC50'] diff --git a/paddlespeech/audio/datasets/gtzan.py b/paddlespeech/audio/datasets/gtzan.py index cfea6f37eecb51dd9fc8bcce5b18b4b0c812a28f..1f6835a5a8ea89161c14bda4d619c2a68f45779f 100644 --- a/paddlespeech/audio/datasets/gtzan.py +++ b/paddlespeech/audio/datasets/gtzan.py @@ -17,8 +17,8 @@ import random from typing import List from typing import Tuple +from ..utils import DATA_HOME from ..utils.download import download_and_decompress -from ..utils.env import DATA_HOME from .dataset import AudioClassificationDataset __all__ = ['GTZAN'] diff --git a/paddlespeech/audio/datasets/tess.py b/paddlespeech/audio/datasets/tess.py index 8faab9c391603fb95d128e16ab44dca71b4075e2..1469fa5e2456166ef30977ac4ac44bb302be7eb2 100644 --- a/paddlespeech/audio/datasets/tess.py +++ b/paddlespeech/audio/datasets/tess.py @@ -17,8 +17,8 @@ import random from typing import List from typing import Tuple +from ..utils import DATA_HOME from ..utils.download import download_and_decompress -from ..utils.env import DATA_HOME from .dataset import AudioClassificationDataset __all__ = ['TESS'] diff --git a/paddlespeech/audio/datasets/urban_sound.py b/paddlespeech/audio/datasets/urban_sound.py index d97c4d1dc7137533f8db4d9ff0308056c0e067b7..0389cd5f97471e5f01e738d288f47d82d33650dc 100644 --- a/paddlespeech/audio/datasets/urban_sound.py +++ b/paddlespeech/audio/datasets/urban_sound.py @@ -16,8 +16,8 @@ import os from typing import List from typing import Tuple +from ..utils import DATA_HOME from ..utils.download import download_and_decompress -from ..utils.env import DATA_HOME from .dataset import AudioClassificationDataset __all__ = ['UrbanSound8K'] diff --git a/paddlespeech/cli/cls/infer.py b/paddlespeech/cli/cls/infer.py index f4e8baea6af743f3450b29d1b3e5dc08cc2d80b3..942dc3b9230b796057eb6fc9065d611867de6d4f 100644 --- a/paddlespeech/cli/cls/infer.py +++ b/paddlespeech/cli/cls/infer.py @@ -21,8 +21,6 @@ from typing import Union import numpy as np import paddle import yaml -from paddleaudio import load -from paddleaudio.features import LogMelSpectrogram from ..executor import BaseExecutor from ..log import logger diff --git a/paddlespeech/cli/vector/infer.py b/paddlespeech/cli/vector/infer.py index c736a53e158b6d4200344de9728edf73404a1604..4bc8e135ad1226f41455d62f392099d283b53d08 100644 --- a/paddlespeech/cli/vector/infer.py +++ b/paddlespeech/cli/vector/infer.py @@ -22,8 +22,6 @@ from typing import Union import paddle import soundfile -from paddleaudio.backends import load as load_audio -from paddleaudio.compliance.librosa import melspectrogram from yacs.config import CfgNode from ..executor import BaseExecutor diff --git a/paddlespeech/cls/models/panns/panns.py b/paddlespeech/cls/models/panns/panns.py index f2a1b9aead9f0d1be679dca64d735fb4e83424d8..4befe7aa4fe06682c17ea0264a18aee728dbb1fc 100644 --- a/paddlespeech/cls/models/panns/panns.py +++ b/paddlespeech/cls/models/panns/panns.py @@ -16,8 +16,8 @@ import os import paddle.nn as nn import paddle.nn.functional as F +from paddlespeech.audio.utils import MODEL_HOME from paddlespeech.audio.utils.download import load_state_dict_from_url -from paddlespeech.audio.utils.env import MODEL_HOME __all__ = ['CNN14', 'CNN10', 'CNN6', 'cnn14', 'cnn10', 'cnn6']