zitengwang / python_kaldi_features Goto Github PK
View Code? Open in Web Editor NEWpython codes to extract MFCC and FBANK speech features for Kaldi
License: MIT License
python codes to extract MFCC and FBANK speech features for Kaldi
License: MIT License
Hi, could you share your fbank array value and the one that Kaldi computes of the wav file? Thanks.
I found in task asr, pitch feature in kaldi is much more popular. It compute fbank feature and pitch feature and I want to extract this pitch feature in python, can you give some useful ways to do that?
Hi,
Thanks for your sharing, It helps me so much
I got almost exactly same results by use logfbank(sig2,nfilt=23,lowfreq=20,dither=0,wintype='povey')
with compute-fbank-feats --dither=0.0
in Kaldi
But when I change something like dither, nfilt, I got different features when I do in kaldi,
The closest I can get is with dither=0.0
So I think maybe something was different in DCT or lifter ?
Then I checked dct and lifter,
For dct, you use the DCT(II), Kaldi use DCT(II) too.
For lifter, the equation of lifter in your is same as Kaldi.
But the decimal part is still different
Could you please tell what makes the difference or I do something wrong?
Is it an error in calculation?
Thank you : )
Kaldi use DCT(II) :
The following is ComputeDctMatrix from Kaldi's ComputeDctMatrix which I think is different from dct of yours:
`template void ComputeDctMatrix(Matrix *M) {
//KALDI_ASSERT(M->NumRows() == M->NumCols());
MatrixIndexT K = M->NumRows();
MatrixIndexT N = M->NumCols();
KALDI_ASSERT(K > 0);
KALDI_ASSERT(N > 0);
Real normalizer = std::sqrt(1.0 / static_cast(N)); // normalizer for
// X_0.
for (MatrixIndexT j = 0; j < N; j++) (*M)(0, j) = normalizer;
normalizer = std::sqrt(2.0 / static_cast(N)); // normalizer for other
// elements.
for (MatrixIndexT k = 1; k < K; k++)
for (MatrixIndexT n = 0; n < N; n++)
(*M)(k, n) = normalizer
* std::cos( static_cast(M_PI)/N * (n + 0.5) * k );
}`
Hello,
I am new to kaldi..
It is very hard to find a command-line which produces the same result from example.py.
Can you upload a sample command-line??
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.