[assistant.picovoice] _on_response_* methods should have varargs.

This commit is contained in:
Fabio Manganiello 2024-06-01 11:26:21 +02:00
parent 2acf6ef3e9
commit 1cc2aaf5a4

View file

@ -530,12 +530,12 @@ class AssistantPicovoicePlugin(AssistantPlugin, RunnablePlugin):
def _get_tts_plugin(self) -> TtsPicovoicePlugin:
return self.tts
def _on_response_render_start(self, text: Optional[str]):
def _on_response_render_start(self, text: Optional[str], *_, **__):
if self._assistant:
self._assistant.set_responding(True)
return super()._on_response_render_start(text)
def _on_response_render_end(self):
def _on_response_render_end(self, *_, **__):
if self._assistant:
self._assistant.set_responding(False)