From 6b646968ba38918e694ec97bcea474219087153f Mon Sep 17 00:00:00 2001 From: emphasize Date: Fri, 6 Oct 2023 14:15:48 +0200 Subject: [PATCH 1/2] fix mic listen message destination --- ovos_workshop/skills/ovos.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ovos_workshop/skills/ovos.py b/ovos_workshop/skills/ovos.py index 8ec0da08..82f0688c 100644 --- a/ovos_workshop/skills/ovos.py +++ b/ovos_workshop/skills/ovos.py @@ -1654,8 +1654,9 @@ def validator_default(utterance): if dialog: self.speak_dialog(dialog, data, expect_response=True, wait=True) else: - msg = message.reply('mycroft.mic.listen') - self.bus.emit(msg) + # make sure the destination is audio + message.context["destination"] = "audio" + self.bus.emit(message.forward('mycroft.mic.listen')) # NOTE: self._wait_response launches a killable thread # the thread waits for a user response for 15 seconds From 8dbd3e733b842bad034a7564c0bdb44909609025 Mon Sep 17 00:00:00 2001 From: emphasize Date: Sat, 7 Oct 2023 00:31:12 +0200 Subject: [PATCH 2/2] kick hardcode --- ovos_workshop/skills/ovos.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/ovos_workshop/skills/ovos.py b/ovos_workshop/skills/ovos.py index 82f0688c..c75253f3 100644 --- a/ovos_workshop/skills/ovos.py +++ b/ovos_workshop/skills/ovos.py @@ -1654,8 +1654,6 @@ def validator_default(utterance): if dialog: self.speak_dialog(dialog, data, expect_response=True, wait=True) else: - # make sure the destination is audio - message.context["destination"] = "audio" self.bus.emit(message.forward('mycroft.mic.listen')) # NOTE: self._wait_response launches a killable thread