fix: fix wakenet model index (#893)

* fix: fix wakenet model index

* fix:Fix warning

* feat: Use jarvis and sophia as wakeup words
This commit is contained in:
virgil
2025-07-09 03:19:08 +08:00
committed by GitHub
parent f556e72604
commit 8e0f76c0ef
3 changed files with 4 additions and 3 deletions

View File

@@ -129,7 +129,7 @@ void AfeWakeWord::AudioDetectionTask() {
if (res->wakeup_state == WAKENET_DETECTED) {
StopDetection();
last_detected_wake_word_ = wake_words_[res->wake_word_index - 1];
last_detected_wake_word_ = wake_words_[res->wakenet_model_index - 1];
if (wake_word_detected_callback_) {
wake_word_detected_callback_(last_detected_wake_word_);