sp500/log_mel.h Source File#
|
Mobilint REGULUS v4.1
SP500 DSP API
|
log_mel.h
Go to the documentation of this file.
Mobilint SP500 DSP offload - status codes, lifecycle and shared memory.
void sp500_log_mel_params_init(sp500_log_mel_params *params)
Fill params with the Whisper defaults documented above.
sp500_status sp500_log_mel(const sp500_buffer *audio, const sp500_log_mel_params *params, sp500_buffer *features, sp500_log_mel_result *result)
Compute the log-mel spectrogram of float32 PCM on the DSP.
int32_t sp500_log_mel_num_freq(int32_t n_fft)
Frequency bins for n_fft: n_fft / 2 + 1, or 0 if n_fft is not supported. Use it to size a custom mel_...
sp500_status sp500_log_mel_cpu(const float *audio, const sp500_log_mel_params *params, float *features, int32_t features_count, sp500_log_mel_result *result)
Host CPU reference for sp500_log_mel(): same tables, same per-frame maths, no DSP involved.
int32_t sp500_log_mel_num_frames(int32_t n_samples, int32_t hop_length)
Frames produced for n_samples: n_samples / hop_length, or 0 for non-positive arguments....
Generated by