Hi @ejay-ibm
I managed to get assistantmk2 and hotword working and everything is fine. However I will be grateful if you could please help me with the following queries:
1). When i say jarvis or smart mirror, the assistantmk2 module takes 1 to 2 seconds to respond i.e. the ding bell I mean after which I can ask any question. How can I remove this lag and make it instant? I have seen other people dont have this issue.
2). How do I get the assistantmk2 to play youtube videos on my mirror by asking it to play something from youtube?
3). Finally can I change the hotword from “jarvis” to say “ok google”?
Thanks.
This is my config:
{
module: "MMM-AssistantMk2",
position: "top_right",
config: {
deviceLocation: {
coordinates: { // set the latitude and longitude of the device to get localized information like weather or time. (ref. mygeoposition.com)
latitude: 51.597442, // -90.0 - +90.0
longitude: -0.338839, // -180.0 - +180.0
}
},
record: {
recordProgram : "arecord",
device : "default",
},
play: { // Full values are in `FOR EXPERTS` section.
playProgram: "mpg321", // recommended.
},
notifications: {
ASSISTANT_ACTIVATED: "HOTWORD_PAUSE",
ASSISTANT_DEACTIVATED: "HOTWORD_RESUME",
},
}
},
{
module: "MMM-Hotword",
config: {
record: {
recordProgram : "arecord",
device : "default",
},
autostart:true,
onDetected: {
notification: function (payload) {
return "ASSISTANT_ACTIVATE"
},
payload: function (payload){
return {
profile: payload.hotword
}
}
},
},
},
Also you have notifications in your config, what is it for? can you please explain? thanks.