GithubHelp home page GithubHelp logo

Is mel-spectrum available? about meyda HOT 5 OPEN

Oortone avatar Oortone commented on September 22, 2024
Is mel-spectrum available?

from meyda.

Comments (5)

hughrawlinson avatar hughrawlinson commented on September 22, 2024

Yes, you can get the raw mel filter banks by calling the createMelFilterBank function from meyda/dist/esm/utilities. I made a quick demo here. Heads up: I suspect that future versions of Meyda might change how we export this, but I haven't decided yet, so keep an eye on the 6.0.0 breaking changes when that comes out.

Let me know if I can help with anything else!

from meyda.

Oortone avatar Oortone commented on September 22, 2024

Ok, I see, but I need to add that in the Node client version somehow to make use of it offline? Probably easy for anyone familiar with Node, but I'm not sure how to add that into the extraction flow easily. Thanks anyway.

from meyda.

hughrawlinson avatar hughrawlinson commented on September 22, 2024

I can write you a little CLI to output the Mel Filter Bank - but I think we might be understanding the Mel Filter Bank in different ways. From my understanding of the code, the Mel Filter Bank isn't based on the signal, and therefore isn't an extracted feature - it's a list of filter coefficient sets that are used when computing the MFCCs. So in the CLI, they would just stay the same for every chunk of the audio input.

As for the MelScaled Spectrum, I would think that would mean a spectrum where the X-axis is Mels, rather than frequency. That's a different thing to the Mel filter bank. Is that what you're hoping to get?

from meyda.

Oortone avatar Oortone commented on September 22, 2024

Ah, yes. Mel Scaled Spectrum is what I mean.
Isn't that generated by a matrix calculation of the amplitudeSpectrum and the mel filter bank?
Seems it might be posiible to generate using Tensorflow, there's:
tf.signal.linear_to_mel_weight_matrix

Don't know if it's in the .js version but the matrix can probably be exported.
But of course, having it as features directly is the best :-)

from meyda.

hughrawlinson avatar hughrawlinson commented on September 22, 2024

Yes, I think having it as a feature would be good! I'll convert this issue to represent a feature request.

from meyda.

Related Issues (20)

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.