speech_2mic_ns6.h 699 字节
Newer Older
C
caiyan.cai 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
#ifndef __SPEECH_2MIC_NS6_H__
#define __SPEECH_2MIC_NS6_H__

#include <stdint.h>

#ifdef __cplusplus
extern "C" {
#endif

typedef struct {
    int32_t     bypass;
    int32_t     wnr_enable;
	int32_t     denoise_dB;
} Speech2MicNs6Config;

struct Speech2MicNs6State_;
typedef struct Speech2MicNs6State_ Speech2MicNs6State;

Speech2MicNs6State *speech_2mic_ns6_create(int sample_rate, int frame_size, const Speech2MicNs6Config *cfg);
int32_t speech_2mic_ns6_destroy(Speech2MicNs6State *st);
int32_t speech_2mic_ns6_process(Speech2MicNs6State *st, short *channel1,short *channel2, int32_t pcm_len);

float speech_2mic_ns6_get_required_mips(Speech2MicNs6State *st);

#ifdef __cplusplus
}
#endif

#endif