MXC-A36-Demo/MCU/components/modules/audio/voice_recognize.h

27 lines
618 B
C

#ifndef _VOICE_RECOGNIZE_H
#define _VOICE_RECOGNIZE_H
#include "audio_scene.h"
typedef struct {
audio_hw_type_t hw_type;
uint32_t sample_rate;
uint32_t hw_base_addr;
} audio_scene_param_voice_recognize_t;
typedef struct {
audio_hw_t *audio_hw;
audio_hw_output_t *audio_hw_output;
/* used to save pcm data */
int16_t *pcm;
} voice_recognize_env_t;
/* called by audio_scene_create to start voice recognize scene */
void voice_recognize_task(void *arg);
/* called by audio_scene_destroy to remove voice recognize*/
void voice_recognize_destroy(void);
#endif // _VOICE_RECOGNIZE_H