reduce audio processing stack size from 8192 to 4096

This commit is contained in:
Terrence
2025-03-22 06:45:46 +08:00
parent 1619217bd9
commit dfd3069ee9
2 changed files with 2 additions and 2 deletions

View File

@@ -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() {

View File

@@ -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) {