display优先级调为最低,避免滚动字幕消耗过多CPU

This commit is contained in:
Terrence
2025-03-04 07:33:49 +08:00
parent 5997ff2ac4
commit 1a808962e2
5 changed files with 8 additions and 6 deletions

View File

@@ -88,7 +88,7 @@ void WakeWordDetect::Initialize(int channels, bool reference) {
auto this_ = (WakeWordDetect*)arg;
this_->AudioDetectionTask();
vTaskDelete(NULL);
}, "audio_detection", 4096 * 2, this, 1, nullptr);
}, "audio_detection", 4096 * 2, this, 2, nullptr);
}
void WakeWordDetect::OnWakeWordDetected(std::function<void(const std::string& wake_word)> callback) {
@@ -202,7 +202,7 @@ void WakeWordDetect::EncodeWakeWordData() {
this_->wake_word_cv_.notify_all();
}
vTaskDelete(NULL);
}, "encode_detect_packets", 4096 * 8, this, 1, wake_word_encode_task_stack_, &wake_word_encode_task_buffer_);
}, "encode_detect_packets", 4096 * 8, this, 2, wake_word_encode_task_stack_, &wake_word_encode_task_buffer_);
}
bool WakeWordDetect::GetWakeWordOpus(std::vector<uint8_t>& opus) {