forked from xiaozhi/xiaozhi-esp32
Add dummy audio processor
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#include <list>
|
||||
#include <vector>
|
||||
#include <condition_variable>
|
||||
#include <memory>
|
||||
|
||||
#include <opus_encoder.h>
|
||||
#include <opus_decoder.h>
|
||||
@@ -19,13 +20,11 @@
|
||||
#include "protocol.h"
|
||||
#include "ota.h"
|
||||
#include "background_task.h"
|
||||
#include "audio_processor.h"
|
||||
|
||||
#if CONFIG_USE_WAKE_WORD_DETECT
|
||||
#include "wake_word_detect.h"
|
||||
#endif
|
||||
#if CONFIG_USE_AUDIO_PROCESSOR
|
||||
#include "audio_processor.h"
|
||||
#endif
|
||||
|
||||
#define SCHEDULE_EVENT (1 << 0)
|
||||
#define AUDIO_INPUT_READY_EVENT (1 << 1)
|
||||
@@ -81,9 +80,7 @@ private:
|
||||
#if CONFIG_USE_WAKE_WORD_DETECT
|
||||
WakeWordDetect wake_word_detect_;
|
||||
#endif
|
||||
#if CONFIG_USE_AUDIO_PROCESSOR
|
||||
AudioProcessor audio_processor_;
|
||||
#endif
|
||||
std::unique_ptr<AudioProcessor> audio_processor_;
|
||||
Ota ota_;
|
||||
std::mutex mutex_;
|
||||
std::list<std::function<void()>> main_tasks_;
|
||||
|
||||
Reference in New Issue
Block a user