MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-AssistantMk2 with Hotword not picking up anything.

    Scheduled Pinned Locked Moved Troubleshooting
    11 Posts 3 Posters 1.7k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R Offline
      reubenvickers
      last edited by

      I initially tried to use this module when I first set up my mirror, but moved over to gauravsacc’s MMM-GoogleAssistant, where I managed to get GA working in the terminal but not in the mirror. There seems to be more flexibility with this module so I have moved back and decided to face what I’ve done (or not done). Essentially, I’m fairly certain my configuration is wrong but I’m unsure how to correct it. When I start up MagicMirror the logs say:

      [AMK2] MMM-AssistantMk2 Version: 3.2.2
      [AMK2] AssistantMk2 is initialized.
      [HOTWORD] begins.
      [HOTWORD] Detector starts listening.

      However when I say one of the configured Hotword nothing happens. The monitor for my Mirror also doesn’t show the google assistant logo which I believe should be showing up.

      My config:

                {
      
                         module: "MMM-Hotword",
      
                         position: "top_right",
      
                         config: {
      
                                 chimeOnFinsih: null,
      
                                 mic: {
      
                                         recordProgram : "arecord",
      
                                         device        : "plughw:1"
      
                                 },
      
                                 models: [
      
                                         {
      
                                                 hotwords : "computer",
      
                                                 file : "computer.umdl",
      
                                                 sensitivity : 0.5,
      
                                         },
      
                                         {
      
                                                 hotwords : "smart_mirror",
      
                                                 file : "smart_mirror.umdl",
      
                                                 sensitivity: "0.5",
      
                                         },
      
                                 ],
      
                                 commands: {
      
                                         "computer": {
      
                                                 notificationsExec: {
      
                                                         notification: "TEST",
      
                                                 },
      
                                                 restart:false
      
                                         }
      
                                 }
      
                         }
      
                 },
      
                 {
      
                         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: xxxxxxx, // -90.0 - +90.0
      
                                                 longitude: xxxxxxx, // -180.0 - +180.0
      
                                         },
      
                                 },
      
                                 record: {
      
                                         recordProgram : "arecord",
      
                                         device        : "plughw:1",
      
                                 },
      
                                 notifications: {
      
                                         ASSISTANT_ACTIVATED: "HOTWORD_PAUSE",
      
                                         ASSISTANT_DEACTIVATED: "HOTWORD_RESUME",
      
                                 },
      
                                 useWelcomeMessage: "brief today",
      
                                 profiles: {
      
                                         "default" : {
      
                                                 lang: "en-UK"
      
                                         }
      
                                 },
      
                         }
      

      @Bugsounet any clue (sorry this took a while to get together, I was re-familiarising myself with the module)

      Thanks

      1 Reply Last reply Reply Quote 0
      • ? Offline
        A Former User
        last edited by

        Hummm,

        where do you find this weird configuration?

        1 Reply Last reply Reply Quote 0
        • R Offline
          reubenvickers
          last edited by

          Haha, that bad is it?

          It’s kinda become a mess of different configs from different places whilst I was trying to troubleshoot last time I was trying to use it.
          As far as I can tell the config for Hotword is essentially the same as the sample in the documentation though?

          1 Reply Last reply Reply Quote 0
          • ? Offline
            A Former User
            last edited by

            I think its better for you to restart with MMM-AssistantMk2 wiki

            MMM-Hotword is designed for complexe configuration with multiple keyword for execute notification to other module with some keyword installed

            if MMM-Hotword is too complex for you use MMM-Snowboy

            1 Reply Last reply Reply Quote 0
            • R Offline
              reubenvickers
              last edited by

              Okay, I’ll give that a go. I didn’t realise that you could just use snowboy - although when I tried to set it up before the website wouldn’t allow me to record (obviously not your problem, probably either theirs or mine)

              Cheers

              1 Reply Last reply Reply Quote 0
              • R Offline
                reubenvickers
                last edited by

                @Bugsounet So I’ve got it working to a much better extent (it actually shows up on screen which is useful). Do you actually need to use Snowboy or Hotword at all? Or can you just use ‘Ok Google’, if so that’s not working so it could be my mic.

                J 1 Reply Last reply Reply Quote 0
                • J Offline
                  JohnBachini @reubenvickers
                  last edited by

                  @reubenvickers

                  When you install does it pass Play/Mic test…?

                  And you have copied mic config into Assistant config.

                  1 Reply Last reply Reply Quote 0
                  • ? Offline
                    A Former User
                    last edited by

                    @reubenvickers : can’t use Ok Google, it’s not a real google device, it’s just an Google SDK project
                    If you want to use Ok Google keyword, it’s possible but it’s complex

                    R 1 Reply Last reply Reply Quote 0
                    • R Offline
                      reubenvickers @Guest
                      last edited by

                      @Bugsounet finally got it working using Snowboy. Thanks for all your help and sorry for my ineptitude.

                      1 Reply Last reply Reply Quote 1
                      • ? Offline
                        A Former User
                        last edited by

                        it doesn’t matter, just read the wiki,
                        I think I did something complete :)

                        1 Reply Last reply Reply Quote 1
                        • 1
                        • 2
                        • 1 / 2
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Sam, technical setup by Karsten.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy