We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26a0655 commit d73d647Copy full SHA for d73d647
1 file changed
machine_learning/mfcc.py
@@ -56,11 +56,11 @@
56
57
Author: Amir Lavasani
58
"""
59
-
60
import logging
61
62
import numpy as np
63
import scipy.fftpack as fft
+from scipy.io import wavfile
64
from scipy.signal import get_window
65
66
logging.basicConfig(filename=f"{__file__}.log", level=logging.INFO)
@@ -464,7 +464,7 @@ def example(wav_file_path: str = "./path-to-file/sample.wav") -> np.ndarray:
464
Returns:
465
np.ndarray: The computed MFCCs for the audio.
466
467
- from scipy.io import wavfile
+
468
469
# Load the audio from the WAV file
470
sample_rate, audio = wavfile.read(wav_file_path)
0 commit comments