• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 / MMM-Hotword Issue

Scheduled Pinned Locked Moved Unsolved Troubleshooting
28 Posts 3 Posters 8.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.
  • S Offline
    sdetweil @JonoGee
    last edited by Jun 26, 2019, 9:46 PM

    @JonoGee is this a pi zero?

    pi@raspberrypi:~/MagicMirror $ sudo apt-get install libatlas-base-dev libatlas3gf-base
    Reading package lists... 0%
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    

    didn’t install libatlas-base-dev.

    may have to install openblas
    I had to on my odroid

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    J 1 Reply Last reply Jun 26, 2019, 9:54 PM Reply Quote 0
    • J Offline
      JonoGee @sdetweil
      last edited by Jun 26, 2019, 9:54 PM

      @sdetweil No. its a Pi3 B+
      How do i install openblas then?

      S 1 Reply Last reply Jun 26, 2019, 10:02 PM Reply Quote 0
      • S Offline
        sdetweil @JonoGee
        last edited by Jun 26, 2019, 10:02 PM

        @JonoGee Google search. What is r u running raspian, ubuntu?

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        J 1 Reply Last reply Jun 27, 2019, 6:55 AM Reply Quote 0
        • J Offline
          JonoGee @sdetweil
          last edited by Jun 27, 2019, 6:55 AM

          @sdetweil Hi good morning. I am running Raspian.

          J 1 Reply Last reply Jun 27, 2019, 10:46 AM Reply Quote 0
          • J Offline
            JonoGee @JonoGee
            last edited by Jun 27, 2019, 10:46 AM

            @JonoGee
            Error message I am getting now in console is as so…

            MMM-GoogleTasks received a module notification: HOTWORD_SLEEPING from sender: MMM-Hotword
            module.js:154 MMM-WatchDog received a module notification: HOTWORD_SLEEPING from sender: MMM-Hotword
            module.js:154 MMM-Cursor received a module notification: HOTWORD_SLEEPING from sender: MMM-Hotword
            null:1 GET http://0.0.0.0:8080/modules/MMM-Hotword/null 404 (Not Found)
            module.js:154 MMM-Tools received a module notification: CALENDAR_EVENTS from sender: calendar
            module.js:154 clock received a module notification: CALENDAR_EVENTS from sender: calendar
            

            I have managed to get AssistantMk2 talking to me now in mirror but Hotword/Mic is still not functioning

            S 1 Reply Last reply Jun 27, 2019, 11:56 AM Reply Quote 0
            • S Offline
              sdetweil @JonoGee
              last edited by sdetweil Jun 30, 2019, 11:35 AM Jun 27, 2019, 11:56 AM

              @JonoGee hm… used to be that you needed MMM-Hotword to hear the Alexa or OK Google (or whatever special ‘Hot’ word), that signaled MMM_AssistantMk2 to listen for search words or commands…

              each used the mic separately, Hotword first, then Assistant.

              I know Sean has released new versions, which I haven’t tested yet

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              J 1 Reply Last reply Jun 27, 2019, 3:37 PM Reply Quote 0
              • J Offline
                JonoGee @sdetweil
                last edited by Jun 27, 2019, 3:37 PM

                @sdetweil As far as I am aware, I have used the latest released versions of each. I guess I’ll just have to wait and see if someone updates it or fixes problem or something. Thanks anyway for your time and help. I have made a bit of progress though. It just seems to be Snowboy now.

                1 Reply Last reply Reply Quote 0
                • B Offline
                  BJ Duncan
                  last edited by Jun 30, 2019, 5:14 AM

                  Have you test your microphone to see if it working in general?

                  From home directory:

                  arecord test.wav
                  

                  and talk for about 5 seconds into your microphone.
                  Then cancel that by Ctrl+C

                  Once you have cancelled the test check your directory to ensure that the ‘test.wav’ file is there:

                  dir
                  

                  if your file shows up then you can test that file to ensure it recorded your voice from the microphone:

                  aplay test.wav
                  

                  You should be able to hear back what you just recorded.
                  If you can, that means it is a configuration setting that just needs to be tweaked. If not, then there is something wrong with either the microphone settings or audio settings within the pi itself.

                  I will keep monitoring and let me know how you go.

                  Regards,
                  BJ Duncan

                  1 Reply Last reply Reply Quote 0
                  • J Offline
                    JonoGee
                    last edited by Jun 30, 2019, 3:45 PM

                    Just tested. Recording & playing back fine with arecord and aplay. No problems and no error messages. Thanks for taking the time for getting in touch anyway. I’d almost given up on this.

                    1 Reply Last reply Reply Quote 0
                    • B Offline
                      BJ Duncan
                      last edited by Jun 30, 2019, 8:41 PM

                      No dramas at all.

                      Now you need to double check that you are pointing to the correct device number for your audio with the Assistant module.
                      In a terminal at the root directory (pi@raspberrypi:~ ) Check the device list for audio input:

                      arecord -l
                      

                      This should provide you a list of CAPTURE Hardware Devices. The numbers you want to write down is the Card number, and device number.
                      As an example on my device I have it as Card: 2 Device: 0

                      Now within the config.js of the MagicMirror ensure that the device number is the same. Here is what it looks like within my config.js:

                      {
                      		  module: "MMM-AssistantMk2",
                      		  position: "bottom_bar",
                      		  config: {
                      		    record: {
                      		      recordProgram : "arecord",  
                      		      device        : "plughw:2",
                      		    },
                      		
                      		    notifications: {
                      		      ASSISTANT_ACTIVATED: "HOTWORD_PAUSE",
                      		      ASSISTANT_DEACTIVATED: "HOTWORD_RESUME",
                      		    },
                      		  }
                      		},
                      		{
                      		  module: "MMM-Hotword",
                      		  config: {
                      		    chimeOnFinish:null,
                      		    mic: {
                      		      recordProgram : "arecord",  
                      		      device        : "plughw:2",
                      		    },
                      		    models: [
                      		      {
                      		        hotwords    : "smart_mirror",
                      		        file        : "smart_mirror.umdl",
                      		        sensitivity : "0.5",
                      		      },
                      		    ],
                      		    defaultCommand: {
                      		      notificationExec: {
                      		        notification: "ASSISTANT_ACTIVATE",
                      		        payload: (detected, afterRecord) => {
                      		          return {profile:"default"}
                      		        }
                      		      },
                      		      afterRecordLimit:0,
                      		      restart:false,
                      		    },
                      		  },
                      },
                      

                      Notice within both my modules because my card number is ‘2’, that the

                      device : "plughw:2",
                      

                      So make sure your number corresponds with your Card number.

                      Give that a test and we will go from there.

                      Regards,
                      BJ Duncan

                      J 1 Reply Last reply Jul 1, 2019, 12:54 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 2 / 3
                      2 / 3
                      • First post
                        13/28
                        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