Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't Find the Training File #1

Open
manashmandal opened this issue Jun 28, 2018 · 3 comments
Open

Can't Find the Training File #1

manashmandal opened this issue Jun 28, 2018 · 3 comments

Comments

@manashmandal
Copy link

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)/s

This 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 inputs

Now everything works fine.

@chiachunfu
Copy link
Owner

@manashmndl if you are looking for the lstm model, you could find the training script, lstm_ctc.py in the repo. For the wavenet model, I'm using a pretrained model that I got from here.

@manashmandal
Copy link
Author

@chiachunfu thanks for your answer, but which MFCC implementation did you follow? The librosa one or the other library?

@chiachunfu
Copy link
Owner

@manashmndl I used the mfcc function implemented in python_speech_features module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants