Coder Social home page Coder Social logo

Comments (8)

auspicious3000 avatar auspicious3000 commented on July 18, 2024

This is normal. Because you computed mfcc in different ways.

from autopst.

intory89 avatar intory89 commented on July 18, 2024

Thanks for your reply.

from autopst.

avanitanna avatar avanitanna commented on July 18, 2024

Hello, can you please tell us what the correct way to generate mfcc_stats is?

from autopst.

auspicious3000 avatar auspicious3000 commented on July 18, 2024

@avanitanna Just compute the mean and std of the mfcc feature.

from autopst.

avanitanna avatar avanitanna commented on July 18, 2024

@auspicious3000 I understand. How should I go from wav files to computing mfcc features and their mean and std? Do you have a script that we can use? I would love to use your work and cite it but it is a little difficult to get the code to work with new training data. I would appreciate your help!

from autopst.

auspicious3000 avatar auspicious3000 commented on July 18, 2024
dctmx = scipy.fftpack.dct(np.eye(80), type=2, axis=1, norm='ortho')

# compute mfcc stats using all spectrograms
mfcc_all = sp_all.dot(dctmx)
mfcc_mean, mfcc_std = np.mean(mfcc_all,axis=0), np.std(mfcc_all,axis=0)

# normalize each mfcc
cc_tmp = sp_tmp.dot(dctmx)
cc_norm = (cc_tmp - mfcc_mean) / mfcc_std

from autopst.

avanitanna avatar avanitanna commented on July 18, 2024

@auspicious3000 thank you! how do you get sp_all and what is sp_tmp? Is it a concatenation of all spectograms? How do I create sp_all? Does the following make sense ?

Say I have multiple spectograms -

mfcc_list = []
for file_name in ['p225_003.npy', 'p225_008.npy, ...]:
    f = np.load(file_name)
    mfcc_list.append(f)

sp_all = np.concatenate(mfcc_list,axis=0)
mfcc_all = sp_all.dot(dctmx) 

from autopst.

auspicious3000 avatar auspicious3000 commented on July 18, 2024

@avanitanna sp_all is the concatenation of all mel spectrogram, sp_tmp is the spectrogram you want to normalize

from autopst.

Related Issues (17)

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.