From 117ddf5f5b1581f0f511bb25575f51ceb3f51922 Mon Sep 17 00:00:00 2001 From: JarbasAI <33701864+JarbasAl@users.noreply.github.com> Date: Fri, 8 Sep 2023 19:06:01 +0100 Subject: [PATCH] refactor/sound_output_in_ovos_audio (#345) --- ovos_core/intent_services/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ovos_core/intent_services/__init__.py b/ovos_core/intent_services/__init__.py index 074f6b17db4..94f23249003 100644 --- a/ovos_core/intent_services/__init__.py +++ b/ovos_core/intent_services/__init__.py @@ -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 @@ -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):