Skip to content

Commit a1cb36c

Browse files
committed
Add standalone usage in comments
1 parent 264bc13 commit a1cb36c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Diff for: machine_learning/mfcc.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@
6262

6363
import numpy as np
6464
import scipy.fftpack as fft
65-
from scipy.io import wavfile
6665
from scipy.signal import get_window
6766

6867
logging.basicConfig(level=logging.WARNING)
@@ -386,10 +385,10 @@ def dct(dct_filter_num: int, filter_num: int) -> np.ndarray:
386385

387386

388387
if __name__ == "__main__":
389-
TRAIN_PATH = "./signal_processing/"
390-
sample_rate, audio = wavfile.read(TRAIN_PATH + "sample-speech.wav")
391-
392-
print(mfcc(audio, sample_rate))
388+
# from scipy.io import wavfile
389+
# wav_file_path = "./path-to-file/sample.wav"
390+
# sample_rate, audio = wavfile.read(wav_file_path)
391+
# mfccs = mfcc(audio, sample_rate)
393392

394393
import doctest
395394

0 commit comments

Comments
 (0)