From 30362b89e38aa8111186aed23da1704ca7ba6f36 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Thu, 30 May 2024 01:33:56 +0200 Subject: [PATCH] [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. --- platypush/plugins/assistant/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/platypush/plugins/assistant/__init__.py b/platypush/plugins/assistant/__init__.py index 22ddb6225..a2e8fae5d 100644 --- a/platypush/plugins/assistant/__init__.py +++ b/platypush/plugins/assistant/__init__.py @@ -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: