-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Description
How did you train your model? Could you please provide the training file as well?
On Data_Process.ipynb file when calculating m, v and s you used mfcc parameters like this,
audio = mfcc(read_audio_from_filename(file, 16000),samplerate=16000,winlen=0.025,winstep=0.01,numcep=39,
nfilt=40)But when I am running other cells on my data,
inputs = convert_wav_mfcc(wav_path, 16000)
normalize_inputs = (inputs - m)/sThis throws an exception that shape doesn't match, so I changed the function convert_wav_mfcc to this
samplerate = 16000
winlen = 0.025
winstep = 0.01
numcep = 39
nfilt = 40
def convert_wav_mfcc(file, fs=16000):
"""Turn raw audio data into MFCC with sample rate=fs."""
inputs = mfcc(read_audio_from_filename(file, fs), samplerate=fs, winlen=winlen, winstep=winstep, numcep=numcep, nfilt=nfilt)
return inputsNow everything works fine.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels