From 1a4210b0dfaec3a253d0c73fb0275bcb242e90a7 Mon Sep 17 00:00:00 2001 From: JarbasAi Date: Wed, 6 Sep 2023 01:05:49 +0100 Subject: [PATCH] 'acknowledge.mp3' --- ovos_workshop/skills/ovos.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ovos_workshop/skills/ovos.py b/ovos_workshop/skills/ovos.py index 4658c36..db2fa25 100644 --- a/ovos_workshop/skills/ovos.py +++ b/ovos_workshop/skills/ovos.py @@ -158,6 +158,17 @@ def deactivate(self): """ self._deactivate() + def acknowledge(self): + """ + Acknowledge a successful request. + + This method plays a sound to acknowledge a request that does not + require a verbal response. This is intended to provide simple feedback + to the user that their request was handled successfully. + """ + audio_file = self.config_core.get('sounds', {}).get('acknowledge', 'acknowledge.mp3') + self.play_audio(audio_file, instant=True) + def play_audio(self, filename: str, instant: bool = False): """ Queue and audio file for playback