Rework startup MWW and gain levels
This commit is contained in:
parent
e224044de3
commit
64cb43dec8
@ -36,9 +36,13 @@ esphome:
|
|||||||
id(pir_presence).publish_state(false);
|
id(pir_presence).publish_state(false);
|
||||||
id(light_presence).publish_state(false);
|
id(light_presence).publish_state(false);
|
||||||
id(radar_presence).publish_state(false);
|
id(radar_presence).publish_state(false);
|
||||||
- light.turn_on:
|
- priority: -100
|
||||||
id: output_led
|
then:
|
||||||
effect: flash_white
|
- if:
|
||||||
|
condition:
|
||||||
|
- switch.is_on: enable_voice_support
|
||||||
|
then:
|
||||||
|
- micro_wake_word.start:
|
||||||
|
|
||||||
preferences:
|
preferences:
|
||||||
flash_write_interval: 15sec
|
flash_write_interval: 15sec
|
||||||
@ -274,32 +278,32 @@ logger:
|
|||||||
|
|
||||||
api:
|
api:
|
||||||
reboot_timeout: 15min
|
reboot_timeout: 15min
|
||||||
on_client_connected:
|
# on_client_connected:
|
||||||
- logger.log:
|
# - logger.log:
|
||||||
format: "Client %s (IP %s) connected to API"
|
# format: "Client %s (IP %s) connected to API"
|
||||||
args: ["client_info.c_str()", "client_address.c_str()"]
|
# args: ["client_info.c_str()", "client_address.c_str()"]
|
||||||
- script.execute: light_off
|
# - script.execute: light_off
|
||||||
- if:
|
# - if:
|
||||||
condition:
|
# condition:
|
||||||
lambda: |-
|
# lambda: |-
|
||||||
return id(enable_voice_support).state &&
|
# return id(enable_voice_support).state &&
|
||||||
!id(mww).is_running();
|
# !id(mww).is_running();
|
||||||
then:
|
# then:
|
||||||
- micro_wake_word.start:
|
# - micro_wake_word.start:
|
||||||
on_client_disconnected:
|
# on_client_disconnected:
|
||||||
- logger.log:
|
# - logger.log:
|
||||||
format: "Client %s (IP %s) disconnected from API"
|
# format: "Client %s (IP %s) disconnected from API"
|
||||||
args: ["client_info.c_str()", "client_address.c_str()"]
|
# args: ["client_info.c_str()", "client_address.c_str()"]
|
||||||
- if:
|
# - if:
|
||||||
condition:
|
# condition:
|
||||||
lambda: |-
|
# lambda: |-
|
||||||
return id(enable_voice_support).state &&
|
# return id(enable_voice_support).state &&
|
||||||
id(mww).is_running();
|
# id(mww).is_running();
|
||||||
then:
|
# then:
|
||||||
- micro_wake_word.stop:
|
# - micro_wake_word.stop:
|
||||||
- light.turn_on:
|
# - light.turn_on:
|
||||||
id: output_led
|
# id: output_led
|
||||||
effect: flash_white
|
# effect: flash_white
|
||||||
|
|
||||||
ota:
|
ota:
|
||||||
platform: esphome
|
platform: esphome
|
||||||
@ -360,7 +364,7 @@ micro_wake_word:
|
|||||||
id: mww
|
id: mww
|
||||||
microphone:
|
microphone:
|
||||||
microphone: mic
|
microphone: mic
|
||||||
gain_factor: 31
|
gain_factor: 4
|
||||||
stop_after_detection: false
|
stop_after_detection: false
|
||||||
models:
|
models:
|
||||||
- model: github://esphome/micro-wake-word-models/models/v2/hey_jarvis.json
|
- model: github://esphome/micro-wake-word-models/models/v2/hey_jarvis.json
|
||||||
@ -388,7 +392,7 @@ voice_assistant:
|
|||||||
micro_wake_word: mww
|
micro_wake_word: mww
|
||||||
use_wake_word: false
|
use_wake_word: false
|
||||||
noise_suppression_level: 3
|
noise_suppression_level: 3
|
||||||
auto_gain: 31 dbfs
|
auto_gain: 4 dbfs
|
||||||
volume_multiplier: 8
|
volume_multiplier: 8
|
||||||
on_wake_word_detected:
|
on_wake_word_detected:
|
||||||
- logger.log: "Wake word detected in VA pipeline"
|
- logger.log: "Wake word detected in VA pipeline"
|
||||||
@ -548,7 +552,7 @@ sensor:
|
|||||||
filters:
|
filters:
|
||||||
- offset: !lambda return id(temperature_offset);
|
- offset: !lambda return id(temperature_offset);
|
||||||
- sliding_window_moving_average:
|
- sliding_window_moving_average:
|
||||||
window_size: 4
|
window_size: 20
|
||||||
send_every: 1
|
send_every: 1
|
||||||
humidity:
|
humidity:
|
||||||
name: "SHT45 Relative Humidity"
|
name: "SHT45 Relative Humidity"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user