| namespace whisper_preprocessor { | |
| struct whisper_mel { | |
| int n_len; | |
| int n_len_org; | |
| int n_mel; | |
| std::vector<float> data; | |
| }; | |
| struct whisper_filters { | |
| int32_t n_mel; | |
| int32_t n_fft; | |
| std::vector<float> data; | |
| }; | |
| bool preprocess_audio( | |
| const float * samples, | |
| size_t n_samples, | |
| const whisper_filters & filters, | |
| std::vector<whisper_mel> & output); | |
| } // namespace whisper_preprocessor | |
| namespace whisper_precalc_filters { | |
| whisper_preprocessor::whisper_filters get_128_bins(); | |
| } // namespace whisper_precalc_filters | |