tflite-micro icon indicating copy to clipboard operation
tflite-micro copied to clipboard

Does TFLM support MFCC?

Open ctwillson opened this issue 1 year ago • 2 comments

ctwillson avatar Aug 29 '24 13:08 ctwillson

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]

shlmregev avatar Sep 09 '24 06:09 shlmregev

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

ctwillson avatar Sep 23 '24 03:09 ctwillson

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

github-actions[bot] avatar Oct 18 '24 10:10 github-actions[bot]

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

github-actions[bot] avatar Oct 24 '24 10:10 github-actions[bot]