forked from xiaozhi/xiaozhi-esp32
reduce audio processing stack size from 8192 to 4096
This commit is contained in:
@@ -44,7 +44,7 @@ void AudioProcessor::Initialize(int channels, bool reference) {
|
||||
auto this_ = (AudioProcessor*)arg;
|
||||
this_->AudioProcessorTask();
|
||||
vTaskDelete(NULL);
|
||||
}, "audio_communication", 4096 * 2, this, 3, NULL);
|
||||
}, "audio_communication", 4096, this, 3, NULL);
|
||||
}
|
||||
|
||||
AudioProcessor::~AudioProcessor() {
|
||||
|
||||
@@ -71,7 +71,7 @@ void WakeWordDetect::Initialize(int channels, bool reference) {
|
||||
auto this_ = (WakeWordDetect*)arg;
|
||||
this_->AudioDetectionTask();
|
||||
vTaskDelete(NULL);
|
||||
}, "audio_detection", 4096 * 2, this, 3, nullptr);
|
||||
}, "audio_detection", 4096, this, 3, nullptr);
|
||||
}
|
||||
|
||||
void WakeWordDetect::OnWakeWordDetected(std::function<void(const std::string& wake_word)> callback) {
|
||||
|
||||
Reference in New Issue
Block a user