tensorflow / tflite-micro

Infrastructure to enable deployment of ML models to low-power resource-constrained embedded targets (including microcontrollers and digital signal processors).
Apache License 2.0
1.91k stars 822 forks source link

Does TFLM support MFCC? #2676

Closed ctwillson closed 2 weeks ago

shlmregev commented 2 months ago

Not currently, but it shouldn't be too hard to add support for it. With the signal/ ops you can implement a mel-spectrum filter bank followed by a log. To complete the MFCC computation, you'll need to add a DCT-II operation. Following the example code code in: https://www.tensorflow.org/api_docs/python/tf/signal/mfccs_from_log_mel_spectrograms You will need to add the operation at the very end: mfccs = tf.signal.mfccs_from_log_mel_spectrograms( log_mel_spectrograms)[..., :13]

ctwillson commented 1 month ago

Not currently, but it shouldn't be too hard to add support for it. With the signal/ ops you can implement a mel-spectrum filter bank followed by a log. To complete the MFCC computation, you'll need to add a DCT-II operation. Following the example code code in: https://www.tensorflow.org/api_docs/python/tf/signal/mfccs_from_log_mel_spectrograms You will need to add the operation at the very end: mfccs = tf.signal.mfccs_from_log_mel_spectrograms( log_mel_spectrograms)[..., :13]

Hi shlmregev: This is a bit difficult for me. Will the official support MFCC? It is very effective for audio feature extraction

github-actions[bot] commented 3 weeks ago

"This issue is being marked as stale due to inactivity. Remove label or comment to prevent closure in 5 days."

github-actions[bot] commented 2 weeks ago

"This issue is being closed because it has been marked as stale for 5 days with no further activity."