forked from xiaozhi/xiaozhi-esp32
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:
@@ -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_);
|
||||
|
||||
Reference in New Issue
Block a user