Files
2025-12-03 11:12:34 +08:00

26 lines
406 B
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#ifndef __AI_AUDIO_H__
#define __AI_AUDIO_H__
#include "typedef.h"
#include "app_config.h"
enum {
AI_AUDIO_EVENT_ERR_REC_START = 1,
AI_AUDIO_EVENT_ERR_REC_STOP,
AI_AUDIO_EVENT_ERR_REC_DATA,
};
// 初始化
int ai_audio_init(void (* evt_cb)(int event));
// 启动录音
int ai_audio_start(void);
// 停止录音
// cancel1-取消
int ai_audio_stop(int cancel);
#endif//__AI_AUDIO_H__