Edge AI Add-on API 2.2.0
Loading...
Searching...
No Matches
nrf_dsp_audio_mels.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2026 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
15#ifndef _NRF_DSP_EXP_AUDIO_MELS_FUNCTIONS_H_
16#define _NRF_DSP_EXP_AUDIO_MELS_FUNCTIONS_H_
17
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
35void nrf_dsp_audio_mels_init(uint16_t sample_rate,
36 uint16_t window_size_ms,
37 uint16_t window_step_size_ms,
38 uint16_t mel_bins_num,
39 uint16_t mel_fmin,
40 uint16_t mel_fmax);
41
47
57uint16_t nrf_dsp_audio_mels_process(const int16_t* p_audio_samples,
58 uint16_t num_samples,
59 flt32_t* p_mels);
60
61#ifdef __cplusplus
62}
63#endif
64
65#endif /* _NRF_DSP_EXP_AUDIO_MELS_FUNCTIONS_H_ */
66
uint16_t nrf_dsp_audio_mels_process(const int16_t *p_audio_samples, uint16_t num_samples, flt32_t *p_mels)
Process audio samples to compute mel spectrogram.
void nrf_dsp_audio_mels_init(uint16_t sample_rate, uint16_t window_size_ms, uint16_t window_step_size_ms, uint16_t mel_bins_num, uint16_t mel_fmin, uint16_t mel_fmax)
Initialize audio mel spectrogram processing pipeline.
void nrf_dsp_audio_mels_deinit(void)
Deinitialize audio mel spectrogram processing pipeline.
float flt32_t
32-bit floating-point type definition.
Definition nrf_edgeai_ctypes.h:21