diff --git a/Dockerfile b/Dockerfile index 6abaf9fd7..0a93a259c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,7 +27,7 @@ COPY container.gitconfig /root/.gitconfig ENV PATH="$PATH:/willow/.local/bin" WORKDIR /willow -ENV ADF_VER="2939a3e541f46f6dd916d2e3b7462609ec4fae5c" +ENV ADF_VER="1ed0196fe4623f5760e512eb851c038cf0785b06" RUN \ cd /opt/esp/idf && \ curl https://raw.githubusercontent.com/toverainc/esp-adf/$ADF_VER/idf_patches/idf_v4.4_freertos.patch | patch -p1 diff --git a/main/audio.c b/main/audio.c index 21e343659..a25f2fd6d 100644 --- a/main/audio.c +++ b/main/audio.c @@ -285,6 +285,13 @@ static esp_err_t cb_ar_event(audio_rec_evt_t are, void *data) if (recording) { break; } + float *wake_volume_ptr = (float *)data; + if (wake_volume_ptr == NULL) { + ESP_LOGI(TAG, "wake_volume_ptr is NULL"); + } else { + float wake_volume = *wake_volume_ptr; + ESP_LOGI(TAG, "wake volume: %f", wake_volume); + } reset_timer(hdl_display_timer, DISPLAY_TIMEOUT_US, true); speech_rec_mode = config_get_char("speech_rec_mode", DEFAULT_SPEECH_REC_MODE); diff --git a/main/log.c b/main/log.c index 1a26326d6..91506b424 100644 --- a/main/log.c +++ b/main/log.c @@ -12,9 +12,11 @@ void init_logging(void) esp_log_level_set("*", ESP_LOG_DEBUG); #else esp_log_level_set("*", ESP_LOG_ERROR); + esp_log_level_set("AUDIO_RECORDER", ESP_LOG_INFO); esp_log_level_set("PERIPH_WIFI", ESP_LOG_WARN); #endif + esp_log_level_set("WILLOW/AUDIO", WILLOW_LOG_LEVEL); esp_log_level_set("WILLOW/CONFIG", WILLOW_LOG_LEVEL); esp_log_level_set("WILLOW/DISPLAY", WILLOW_LOG_LEVEL); @@ -32,4 +34,4 @@ void init_logging(void) esp_log_level_set("WILLOW/TIMER", WILLOW_LOG_LEVEL); esp_log_level_set("WILLOW/UI", WILLOW_LOG_LEVEL); esp_log_level_set("WILLOW/WAS", WILLOW_LOG_LEVEL); -} \ No newline at end of file +}