ESPHome Wake Word support (#98544)
* ESPHome Wake Word support * Remove all vad code from esphome integration * Catch exception when no wake word provider found * Remove import * Remove esphome vad tests * Add tests * More tests
This commit is contained in:
parent
c86565b9bc
commit
a42d975c49
3 changed files with 105 additions and 225 deletions
|
@ -18,7 +18,6 @@ from aioesphomeapi import (
|
|||
UserServiceArgType,
|
||||
VoiceAssistantEventType,
|
||||
)
|
||||
from aioesphomeapi.model import VoiceAssistantCommandFlag
|
||||
from awesomeversion import AwesomeVersion
|
||||
import voluptuous as vol
|
||||
|
||||
|
@ -320,7 +319,7 @@ class ESPHomeManager:
|
|||
self.voice_assistant_udp_server = None
|
||||
|
||||
async def _handle_pipeline_start(
|
||||
self, conversation_id: str, use_vad: int
|
||||
self, conversation_id: str, flags: int
|
||||
) -> int | None:
|
||||
"""Start a voice assistant pipeline."""
|
||||
if self.voice_assistant_udp_server is not None:
|
||||
|
@ -340,8 +339,7 @@ class ESPHomeManager:
|
|||
voice_assistant_udp_server.run_pipeline(
|
||||
device_id=self.device_id,
|
||||
conversation_id=conversation_id or None,
|
||||
use_vad=VoiceAssistantCommandFlag(use_vad)
|
||||
== VoiceAssistantCommandFlag.USE_VAD,
|
||||
flags=flags,
|
||||
),
|
||||
"esphome.voice_assistant_udp_server.run_pipeline",
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue