MagicMirror² v2.6.0 is available! For more information about this release, check out this topic.

Start or not...?


  • Module Developer

    @egnos
    MMM-Hotword is needed if you want to activate it with voice hotword.



  • @sean said in Start or not...?:

    @egnos
    MMM-Hotword is needed if you want to activate it with voice hotword.

    Thanks Sean!
    So if I only install the module “MMM-assistantmk2” how can I use it?
    So if I only install the module “MMM-assistantmk2” I can not do anything … correct?


  • Module Developer

    @egnos
    You can activate it with touching or clicking icon (If you have a touchable/clickable input method like touchscreen or mouse).
    Or You might have another input method like H/W button, or anything else. You can activate with other module which can emit notification. (Yes, Even default calendar module can activate this)
    I wanted to make this universal.



  • How can I activate it with the H / W keys?
    Only for test…

    @sean said in Start or not...?:

    You can activate with other module which can emit notification. (Yes, Even default calendar module can activate this)

    This function be done directly with “MMM-assistantmk2” or should I always install “MMM-Hotword”?


  • Module Developer

    @egnos function itself is included. But activating that function with hotword needs MMM-Hotword.



  • @sean said in Start or not...?:

    @egnos function itself is included. But activating that function with hotword needs MMM-Hotword.

    Ok, so I have to install MMM-Hotword.
    Thanks



  • @sean I have some question on MMM-assistantmk2, MMM-Hotword and MMM-pages (or another module that creates multiple pages recommended by you…).

    • MMM-assistantmk2: this module also speak Italian?

    • MMM-Hotword: can I also use hot words in Italian?
      Or can I use only the English hot words shown in the configuration file?

    customizable notification trigger
        notifications: {
          PAUSE: "HOTWORD_PAUSE",
          RESUME: "HOTWORD_RESUME",
          LISTENING : "HOTWORD_LISTENING",
          SLEEPING : "HOTWORD_SLEEPING",
          ERROR : "HOTWORD_ERROR",
    
    • MMM-pages (we accept advice…😉 ): It is possible, through MMM-assistantmk2 or MMM-Hotword, to change page maybe saying: “Magic Mirror surveillance page or Magic Mirror multimedia page …”?
      If yes, how?

    Thanks.


  • Module Developer

    @egnos

    MMM-assistantmk2: this module also speak Italian?

    If you set your profile to it-IT, it would.

    MMM-Hotword: can I also use hot words in Italian?
    Or can I use only the English hot words shown in the configuration file?

    MMM-Hotword(snowboy) can’t understand the language itself. It just will match the pattern of your voice with defined models. So, that is not configurable. However you can create your custom private hotword model(.pmdl) and use it. See the Snowboy website. (http://kitt.ai)

    MMM-pages (we accept advice…😉 ): It is possible, through MMM-assistantmk2 or MMM-Hotword, to change page maybe saying: “Magic Mirror surveillance page or Magic Mirror multimedia page …”?

    First; You have to make gAction or transcriptionHook . Here is a sample for transcriptionHook

    transcriptionHook: {
      "MY_HOOK_FOR_PAGE_2": {
        pattern: "change to page 2", 
        command: "PAGE_2",
      },
    },
    

    Then, you need to make a command to change page like this;

    command: {
      "PAGE_2" : {
        notificationExec: {
          notification: "PAGE_CHANGED",
          payload: 2,
        },
      },
    },
    

    This is just sample, not tested. Read the instruction documents in repository.



  • @sean said in Start or not...?:

    MMM-Hotword(snowboy) can’t understand the language itself. It just will match the pattern of your voice with defined models. So, that is not configurable. However you can create your custom private hotword model(.pmdl) and use it. See the Snowboy website. (http://kitt.ai)

    Ok, so I can substitute the words in English with those in Italian, changing in this way:

    customizable notification trigger
        notifications: {
          PAUSE: "HOTWORD_PAUSA",
          RESUME: "HOTWORD_RIPRENDI",
          LISTENING : "HOTWORD_ASCOLTA",
          SLEEPING : "HOTWORD_DORMI",
          ERROR : "HOTWORD_ERRORE",
    

    @sean said in Start or not...?:

    First; You have to make gAction or transcriptionHook . Here is a sample for transcriptionHook

    What is the difference between gAction and transcriptionHook?

    The code you wrote should be put under the module MMM-assistantmk2, MMM-Hotword or MMM-pages?

    Is the MMM-pages module suitable for my needs or another module is better?

    Thanks and sorry for the 1000 questions!!!


  • Module Developer

    @egnos

    customizable notification trigger
    notifications: {
    PAUSE: “HOTWORD_PAUSA”,
    RESUME: “HOTWORD_RIPRENDI”,
    LISTENING : “HOTWORD_ASCOLTA”,
    SLEEPING : “HOTWORD_DORMI”,
    ERROR : “HOTWORD_ERRORE”,

    No, you SHOULD NOT do that modification. Those values are used for system communication between modules. Those are not related with user language or user experience. If you are not developer, you don’t need to touch them.

    What is the difference between gAction and transcriptionHook?

    gAction is small application or conversation set on Assistant. It is harder to create, but give natural experience to user.
    transcriptionHook is just little trick to catch some pattern from your vocal query when you order to Assistant. If some pattern be found when you say something, my module will execute defined command instead original response of Assistant. It’s easier to handle (comparing with gAction)

    The code you wrote should be put under the module MMM-assistantmk2, MMM-Hotword or MMM-pages?

    MMM-AssistantMk2. Read the instruction on github repository. (CONFIGURATION and USAGE documents)