Skip to content

Commit d73d647

Browse files
authored
Update mfcc.py
1 parent 26a0655 commit d73d647

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

machine_learning/mfcc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@
5656
5757
Author: Amir Lavasani
5858
"""
59-
6059
import logging
6160

6261
import numpy as np
6362
import scipy.fftpack as fft
63+
from scipy.io import wavfile
6464
from scipy.signal import get_window
6565

6666
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:
464464
Returns:
465465
np.ndarray: The computed MFCCs for the audio.
466466
"""
467-
from scipy.io import wavfile
467+
468468

469469
# Load the audio from the WAV file
470470
sample_rate, audio = wavfile.read(wav_file_path)

0 commit comments

Comments
 (0)