Code Monkey home page Code Monkey logo

sonopy's Issues

[Question] Dimensionality of output & input parameters relationships

After playing around with the mfcc_spec function I've noticed something and wanted some clarification on the same.

Say I have some audio file of sampling rate sr and length N * sr.
I have chosen the following parameters (matches librosa's defaults):

  • window length: 2048
  • window stride: 512
  • n_fft: 2048
  • n_filters: 128
  • n_coeffs: 20

However,

  1. n_fft has to be 2 * window_length - 1 for dimensionality to be preserved
  2. n_filters does not work unless n_filters = window_length
  3. Memory error with these default params.

When I resolve these issues by setting the params to:

  • window length: 1024
  • window stride: 512
  • n_fft: 2047
  • n_filters: 1024
  • n_coeffs: 20

It results in an mfcc output of (374, 20, 1024). From what I understand, mfcc.shape[1] = n_coeffs and mfcc.shape[-1] = window_length (?) but what does mfcc.shape[0] correspond to? Furthermore, is there any way possible to try to replicate the librosa default params without running into memory issues?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.