[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 826a3fa55c
commit 30362b89e3

View file

@ -13,7 +13,6 @@ from platypush.plugins import Plugin, action
from platypush.utils import get_plugin_name_by_class from platypush.utils import get_plugin_name_by_class
@dataclass
class AlertType(Enum): class AlertType(Enum):
""" """
Enum representing the type of an alert. Enum representing the type of an alert.
@ -77,7 +76,7 @@ class AssistantPlugin(Plugin, AssistantEntityManager, ABC):
""" """
super().__init__(*args, **kwargs) super().__init__(*args, **kwargs)
self.tts_plugin = tts_plugin 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.stop_conversation_on_speech_match = stop_conversation_on_speech_match
self._conversation_start_sound = None self._conversation_start_sound = None
if conversation_start_sound: if conversation_start_sound: