@ -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
@ -17,6 +17,7 @@ import os
from typing import Dict
from paddleaudio.utils import logger
# yapf: disable
@ -16,10 +16,11 @@ import os
from paddle import inference
from scipy.special import softmax
from paddleaudio.datasets import ESC50
parser = argparse.ArgumentParser()
@ -16,6 +16,7 @@ import os
from model import SoundClassifier
@ -17,6 +17,7 @@ import numpy as np
import paddle.nn.functional as F
@ -15,6 +15,7 @@ from typing import List
from numpy import ndarray as array
from paddleaudio.backends import depth_convert
from paddleaudio.utils import ParameterError
@ -20,9 +20,10 @@ import numpy as np
import scipy
from numpy.lib.stride_tricks import as_strided
from scipy.signal import get_window
__all__ = [
'stft',
'mfcc',
@ -13,9 +13,10 @@
# limitations under the License.
import librosa
import paddleaudio
import pytest
TEST_FILE = './test/data/test_audio.wav'
import paddleaudio as pa
@pytest.mark.filterwarnings("ignore::DeprecationWarning")
def load_audio():