Hi,
I am using latest librosa (0.10.2.post1) to do mfcc extraction from audio segments. Using the mfcc result to training model for audio classification.
I found the mfcc result is different on mac, linux, especially different on linux with different CPU.
Is it normal, or is there any setting I need to do? How could I train a model with mfcc, and use the model on other environment?
Below is the code I used to compare different output.
y, _ = librosa.load(audio_file, sr=sr)
duration = librosa.get_duration(y=y, sr=sr)
hashes = []
for start in np.arange(0, duration, interval):
end = min(start + interval, duration)
y_segment = y[int(start * sr):int(end * sr)]
mfcc = librosa.feature.mfcc(y=y_segment, sr=sr, hop_length=hop_length, n_mfcc=13, n_fft=200,n_mels=26)
mfcc_hash = hashlib.md5(mfcc.tobytes()).hexdigest()
hashes.append(mfcc_hash)
return hashes