Enable Stop Listen
This commit is contained in:
@@ -53,13 +53,17 @@ voice_assistant:
|
|||||||
effect: none
|
effect: none
|
||||||
- lambda: id(voice_assistant_phase) = 2;
|
- lambda: id(voice_assistant_phase) = 2;
|
||||||
- lambda: id(stt_vad_started) = false;
|
- lambda: id(stt_vad_started) = false;
|
||||||
|
- script.execute: listening_timeout
|
||||||
|
|
||||||
on_stt_vad_start:
|
on_stt_vad_start:
|
||||||
# Turn off the script if speech is detected
|
# Turn off the script if speech is detected
|
||||||
- lambda: id(stt_vad_started) = true;
|
- lambda: id(stt_vad_started) = true;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
on_stt_vad_end:
|
on_stt_vad_end:
|
||||||
#- logger.log: "===============================VAD is the END =================================="
|
#- logger.log: "===============================VAD is the END =================================="
|
||||||
|
- script.stop: listening_timeout
|
||||||
- light.turn_on:
|
- light.turn_on:
|
||||||
id: led
|
id: led
|
||||||
blue: 100%
|
blue: 100%
|
||||||
|
|||||||
Reference in New Issue
Block a user