Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions home-assistant-voice.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,20 @@ switch:
entity_category: config
optimistic: true
restore_mode: RESTORE_DEFAULT_ON

# New: Option to play processing sound when assistant is thinking
- platform: template
id: thinking_sound
name: "Thinking sound"
icon: "mdi:music-note"
entity_category: config
optimistic: true
restore_mode: RESTORE_DEFAULT_OFF
on_turn_on:
- script.execute: control_leds
on_turn_off:
- script.execute: control_leds

# Internal switch to track when a timer is ringing on the device.
- platform: template
id: timer_ringing
Expand Down Expand Up @@ -1559,6 +1573,8 @@ media_player:
file: https://github.com/esphome/home-assistant-voice-pe/raw/dev/sounds/easter_egg_tada.mp3
- id: error_cloud_expired
file: https://github.com/esphome/home-assistant-voice-pe/raw/dev/sounds/error_cloud_expired.mp3
- id: processing_sound
file: https://github.com/esphome/home-assistant-voice-pe/raw/dev/sounds/processing.wav

voice_kit:
id: voice_kit_component
Expand Down Expand Up @@ -1729,6 +1745,16 @@ voice_assistant:
on_stt_vad_end:
- lambda: id(voice_assistant_phase) = ${voice_assist_thinking_phase_id};
- script.execute: control_leds
# Play optional processing sound if enabled
- if:
condition:
lambda: 'return id(thinking_sound).state;'
then:
- script.execute:
id: play_sound
parameters:
priority: true
sound_file: !lambda return id(processing_sound);
on_intent_progress:
- if:
condition:
Expand Down
Binary file added sounds/processing.wav
Binary file not shown.
Loading