Skip to content

Commit

Permalink
Duck audio for all annoucements (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlpouffier committed Sep 12, 2024
1 parent f7cd5e7 commit b3a623d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions voice-kit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ switch:
on_turn_on:
- nabu.set_ducking:
decibel_reduction: 20
duration: 0.0s
- script.execute: ring_timer
- script.execute: control_leds
- delay: 15min
Expand Down Expand Up @@ -1227,6 +1228,23 @@ media_player:
- script.execute: control_leds
on_volume:
- script.execute: control_leds
on_announcement:
- nabu.set_ducking:
decibel_reduction: 20
duration: 0.0s
on_state:
if:
condition:
and:
- switch.is_off: timer_ringing
- not:
voice_assistant.is_running:
- not:
lambda: return id(nabu_media_player)->state == media_player::MediaPlayerState::MEDIA_PLAYER_STATE_ANNOUNCING;
then:
- nabu.set_ducking:
decibel_reduction: 0
duration: 1.0s
files:
- id: center_button_press_sound
file: sounds/center_button_press.flac
Expand Down

0 comments on commit b3a623d

Please sign in to comment.