| 525 | // |
| 526 | |
| 527 | void mtmd_audio_preprocessor_whisper::initialize() { |
| 528 | cache.fill_sin_cos_table(hparams.audio_n_fft); |
| 529 | cache.fill_hann_window(hparams.audio_window_len, true); |
| 530 | cache.fill_mel_filterbank_matrix(hparams.n_mel_bins, hparams.audio_n_fft, hparams.audio_sample_rate); |
| 531 | } |
| 532 | |
| 533 | bool mtmd_audio_preprocessor_whisper::preprocess(const float * samples, |
| 534 | size_t n_samples, |
no test coverage detected