The weather skill install itself automatic
any way to keep it from returning after uninstall?
I run on kde neon
The weather skill install itself automatic
any way to keep it from returning after uninstall?
I run on kde neon
Yo can blacklist skills in mycroft.conf
https://mycroft-ai.gitbook.io/docs/skill-development/faq#how-do-i-disable-a-skill
you can edit the system or user mycroft.conf by the command
mycroft-config edit system
or
mycroft-config edit user
Thanks, than that is solved
I experienced the same problem with player control skill, I control mpd on HA , via mqtt.
Thanks, too,âŚ
but this does not stop the installation, only stopâs the skill from running
Aha, what I wanted was, to get rid off âplayâ utterance mismatch, I was offered with Pandora and Netlix. I must admit this probably occured when I had a bug in my code. Now it is OK, does an alphapbet order play role in skill utterance priority?
there is an // priority skills to be loaded first function in the mycroft.conf file
/mycroft-core/mycroft/configuration/mycroft.conf
Iâm not sure if itâs just load priority, or work priority as wellâŚ
@petr The utterance âplayâ is handled by the common play framework. Since multiple skills need to use the utterance play, there can be a lot of clashes. What the framework does is it asks all the common play skills if they can handle the request (like if they can play that song). Then once the skills respond, the framework chooses one skill to fulfill the request (based on confidence levels).
You can learn more about it in the docs: https://mycroft-ai.gitbook.io/docs/skill-development/skill-types/common-play-framework
Thanks a lot for an explanatory message and also apologize for not browsing doc properly. What You Are ref to is a great tool when it comes in place more complex utterance which is not my case curently, definitely later on. If I may, have a still one next question. Is it possible handel the moment after the hot word is spoken? The reason is, that I would like to issue command to mute media player and so protect âmycroftâ from a trash noice.
You can register listner_started and then do something when that happens
self.add_event('recognizer_loop:record_begin',
self.handle_listener_started)
def handle_listener_started(self, message):
# code to excecute when active listening begins...
Thanks a lot for the clue, now I am there, I wanted to be, works fine,âŚ
Hi, unfortunately I got in a âcool de sackâ again. I installed a client: âmycroft-pip install mycroft-messagebus-clientâ. Than I modified init.py in : ~/mycroft-core/mycroft/messagebus/client ,
as follows:
def initialize(self):
self.add_event(ârecognizer_loop:record_beginâ,
self.handle_listener_started)
def handle_listener_started(self, message):
LOGGER.info(âAfter wakeword ssssssssssssssssss XXxxxxxâ)
Imports seems to be fine, no exception,⌠Suprisingly it worked for the first run, however after than it stoped work. I checked code many times. Thx for Your attention to this,âŚ
Hi, after some time I got back to the problem in question. Finaly I solved it like that: I created a new âdummyâ skill. Its only purpose is to pause media player running on a separate raspberry pi when a wake word is spoken and Mycroft is about to listen an utterance. Here is a snip of code:
......
def initialize(self):
self.add_event('recognizer_loop:wakeword',
self.handler_wakeword)
def handler_wakeword(self, message):
.....
client=mqtt.Client("Picroft")
client.username_pw_set(user,password=password)
client.connect(broker, port=port)
client.publish("mycroft/mpd/pause","",qos=1)
.....
It works fine, when I call âHey Mycroftâ the player gets mute immediately and Mycroft can receive the utterance without a noice.