wavey-ai / mel-spec

Rust library for whisper.cpp compatible Mel spectrograms
MIT License
53 stars 14 forks source link

Compute fbank #12

Open thewh1teagle opened 2 months ago

thewh1teagle commented 2 months ago

How can I compute fbank features identical to this (kaldi)?

https://github.com/thewh1teagle/ort-diarize/blob/main/extract.py#L6

jbrough commented 2 months ago

taking a look this eve.

jbrough commented 2 months ago

@thewh1teagle https://github.com/wavey-ai/mel-spec/pull/14/files

There's a usage example in the test. As you can see from the two spectrograms there is a slight difference so I haven't bothered to test the delta between the fbanks sample-by-sample yet. But this should get you close (enough?).