Skip to content

Commit

Permalink
refactor/sound_output_in_ovos_audio
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Sep 6, 2023
1 parent 1c3ac69 commit fb17bc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ovos_core/intent_services/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
from ovos_utils.log import LOG
from ovos_utils.messagebus import get_message_lang
from ovos_utils.metrics import Stopwatch
from ovos_utils.sound import play_error_sound

try:
from ovos_core.intent_services.padatious_service import PadatiousService, PadatiousMatcher
Expand Down Expand Up @@ -344,7 +343,8 @@ def send_complete_intent_failure(self, message):
Args:
message (Message): original message to forward from
"""
play_error_sound()
sound = Configuration().get('sounds', {}).get('error', "snd/error.mp3")
self.bus.emit(message.forward('mycroft.audio.play_sound', {"uri": sound}))
self.bus.emit(message.forward('complete_intent_failure'))

def handle_register_vocab(self, message):
Expand Down

0 comments on commit fb17bc0

Please sign in to comment.