Skip to content

Commit

Permalink
sounds from config
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Sep 17, 2023
1 parent ed47c9a commit 4b269cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ovos_core/skill_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ def shutdown(self):
pass

def play_error_sound(self):
self.bus.emit(Message("mycroft.audio.play_sound",
{"uri": "snd/error.mp3"}))
snd = Configuration().get("sounds", {}).get("pip_error", "snd/error.mp3")
self.bus.emit(Message("mycroft.audio.play_sound", {"uri": snd}))

def play_success_sound(self):
self.bus.emit(Message("mycroft.audio.play_sound",
{"uri": "snd/acknowledge.mp3"}))
snd = Configuration().get("sounds", {}).get("pip_success", "snd/acknowledge.mp3")
self.bus.emit(Message("mycroft.audio.play_sound", {"uri": snd}))

def pip_install(self, packages: list,
constraints: Optional[str] = None,
Expand Down

0 comments on commit 4b269cf

Please sign in to comment.