Skip to content

Frame length is greater than FFT size #91

Open
@jiwidi

Description

@jiwidi

Hi!

So im getting this error when processing my files :
WARNING:root:frame length (1200) is greater than FFT size (512), frame will be truncated. Increase NFFT to avoid.

My code looks like:

def wav2logfbank(f_path, win_size, n_filters):
    (rate, sig) = wav.read(f_path)
    fbank_feat = logfbank(sig, rate, winlen=win_size, nfilt=n_filters)
    os.remove(f_path)
    np.save(f_path[:-3] + "fb" + str(n_filters), fbank_feat)

Where I just pass the path to a .wav file.

Is it because my audio framerate? If so, how can i find the correct nfft size?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions