Refactor volume control: Add volume slider for speaker and adjust volume multiplier for improved audio management
This commit is contained in:
@@ -16,7 +16,6 @@ esphome:
|
|||||||
switch.is_off: mute
|
switch.is_off: mute
|
||||||
then:
|
then:
|
||||||
- micro_wake_word.start:
|
- micro_wake_word.start:
|
||||||
|
|
||||||
esp32:
|
esp32:
|
||||||
board: esp32-s3-devkitc-1
|
board: esp32-s3-devkitc-1
|
||||||
framework:
|
framework:
|
||||||
@@ -72,6 +71,23 @@ light:
|
|||||||
move_interval: 100ms
|
move_interval: 100ms
|
||||||
scan_width: 1
|
scan_width: 1
|
||||||
|
|
||||||
|
number:
|
||||||
|
- platform: template
|
||||||
|
id: va_volume_percent
|
||||||
|
name: "VA Speaker Volume"
|
||||||
|
min_value: 10
|
||||||
|
max_value: 100
|
||||||
|
step: 5
|
||||||
|
unit_of_measurement: "%"
|
||||||
|
mode: slider
|
||||||
|
optimistic: true
|
||||||
|
restore_value: true
|
||||||
|
initial_value: 80
|
||||||
|
set_action:
|
||||||
|
- speaker.volume_set:
|
||||||
|
id: va_speaker
|
||||||
|
volume: !lambda "return x / 100.0f;"
|
||||||
|
|
||||||
switch:
|
switch:
|
||||||
- platform: template
|
- platform: template
|
||||||
id: mute
|
id: mute
|
||||||
@@ -166,7 +182,7 @@ voice_assistant:
|
|||||||
use_wake_word: false
|
use_wake_word: false
|
||||||
noise_suppression_level: 2.0
|
noise_suppression_level: 2.0
|
||||||
auto_gain: 31dBFS
|
auto_gain: 31dBFS
|
||||||
volume_multiplier: 4.0
|
volume_multiplier: 8.0
|
||||||
on_client_connected:
|
on_client_connected:
|
||||||
- if:
|
- if:
|
||||||
condition:
|
condition:
|
||||||
|
|||||||
Reference in New Issue
Block a user