[assistant] tts_plugin_args should include join=True by default.

The assistant by default should be configured to wait for response audio
to be fully rendered before proceeding.
This commit is contained in:
Fabio Manganiello 2024-05-30 01:33:56 +02:00
parent d2caa989ac
commit d6185ddb1e
Signed by untrusted user: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -13,7 +13,6 @@ from platypush.plugins import Plugin, action
from platypush.utils import get_plugin_name_by_class
@dataclass
class AlertType(Enum):
"""
Enum representing the type of an alert.
@ -77,7 +76,7 @@ class AssistantPlugin(Plugin, AssistantEntityManager, ABC):
"""
super().__init__(*args, **kwargs)
self.tts_plugin = tts_plugin
self.tts_plugin_args = tts_plugin_args or {}
self.tts_plugin_args = {'join': True, **(tts_plugin_args or {})}
self.stop_conversation_on_speech_match = stop_conversation_on_speech_match
self._conversation_start_sound = None
if conversation_start_sound: