Skip to content

Commit

Permalink
'acknowledge.mp3'
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Sep 6, 2023
1 parent 977675b commit 1a4210b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ovos_workshop/skills/ovos.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1a4210b

Please sign in to comment.