• 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 terminating and not activating by voice after that.

Scheduled Pinned Locked Moved Solved Troubleshooting
13 Posts 5 Posters 3.5k Views 5 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.
  • B Offline
    BJ Duncan
    last edited by Jun 14, 2019, 9:37 AM

    G’day to all.
    I am having issues with MMM-AssistantMk2 whereby when I launch MagicMirror, the module appears to be working. It makes the “beep” sound from speakers, it initiates the default call (“brief today”) but just towards the conclusion it terminates. From here I am unable to activate any command via voice. I have to activate it via mound (via VNC Viewer). If I activate by mouse it ‘hears’ my command and interprets what I am saying onto the screen, however it fails to respond.

    I ran it through npm start dev and this was the error I could see:

    MMM-Hotword.js:261 Uncaught TypeError: Cannot set property 'className' of null
        at Class.status (MMM-Hotword.js:261)
        at Class.socketNotificationReceived (MMM-Hotword.js:170)
        at module.js:246
        at r.<anonymous> (socketclient.js:25)
        at r.emit (index.js:83)
        at r.onevent (index.js:83)
        at r.MMSocket.self.socket.onevent (socketclient.js:19)
        at r.onpacket (index.js:83)
        at r.<anonymous> (index.js:83)
        at r.emit (index.js:83)
    

    Any assistance in this matter would be greatly appreciated.
    Regards,
    BJ Duncan

    Regards,
    BJ Duncan

    1 Reply Last reply Reply Quote 0
    • B Offline
      BJ Duncan
      last edited by BJ Duncan Jun 17, 2019, 8:49 AM Jun 17, 2019, 8:47 AM

      @Sean said in MMM-AssistantMk2 terminating and not activating by voice after that.:

      mpg321

      Woo-Hoo! - Thank you so much @Sean - That worked for me. I just reinstalled (or maybe just installed) mpg321 and it is completing the whole sentence without any cutoff. #veryHapppy :-)

      The code I used was:

      sudo apt-get -y install mpg321
      

      Thanks to all that contributed to this post and I hope it helps others out just as it helped me.

      Regards,
      BJ Duncan

      Regards,
      BJ Duncan

      1 Reply Last reply Reply Quote 0
      • B Offline
        blee1997
        last edited by Jun 14, 2019, 7:44 PM

        Would this error only occur when saying the Activation word or would it time out after 10-15 seconds and show you the error. I also encountered a similar error message but not sure on what is happening either.

        1 Reply Last reply Reply Quote 0
        • ? Offline
          A Former User
          last edited by A Former User Jun 14, 2019, 8:12 PM Jun 14, 2019, 8:12 PM

          you might have not assigned the position of hotword module.

          1 Reply Last reply Reply Quote 0
          • B Offline
            BJ Duncan
            last edited by Jun 14, 2019, 10:51 PM

            @blee1997 - It would not acknowledge or activate when I say “smart mirror”, “hey google” or anything. I am not even sure how to set that actual activating word/s. I assumed the default was “smart mirror”. But if I click the icon with the mouse it will listen to anything and interpret anything I say including the above mentioned words.

            @Sean - Looking through the config.js it doesn’t appear to have position, so I will give that a go also.

            Thanks for replying and I will keep at it and will reply once I have a solution.

            Regards,
            BJ Duncan

            Regards,
            BJ Duncan

            1 Reply Last reply Reply Quote 0
            • B Offline
              BJ Duncan
              last edited by Jun 14, 2019, 11:07 PM

              So I’m almost there now. I realised that I had the incorrect data within my config.js file as I used the configuration for v1 rather than v2. I also added the same position as the MMM-AssistantMk2 with the config.js (thanks to @Sean for that ;-) )

              My only issue now is that it still seems to terminate before completing the return request.
              E.g.
              Me: “Smart Mirror, what is the time?”
              (OSD: “what is the time?”)
              AssistantMk2: “The time is 8” - terminates
              (OSD: returns back to original icon immediately after termination.)
              – no ererors appear when I run this in dev mode –

              This occurs after each attempt regardless of the actual question. Could there possibly be a conflict with another module? Has anyone else come across this issue?

              Regards,
              BJ Duncan

              Regards,
              BJ Duncan

              S 1 Reply Last reply Jun 14, 2019, 11:16 PM Reply Quote 0
              • S Away
                sdetweil @BJ Duncan
                last edited by Jun 14, 2019, 11:16 PM

                @BJ-Duncan thats funny… it used to chop off the beginning of the reply… !

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                B 1 Reply Last reply Jun 14, 2019, 11:20 PM Reply Quote 0
                • B Offline
                  BJ Duncan @sdetweil
                  last edited by Jun 14, 2019, 11:20 PM

                  @sdetweil Is there some setting I need to adjust to allow it to complete the request? Have I inadvertently changed a default setting somewhere?

                  Regards,
                  BJ Duncan

                  S 1 Reply Last reply Jun 15, 2019, 12:21 AM Reply Quote 0
                  • B Offline
                    BJ Duncan
                    last edited by Jun 14, 2019, 11:23 PM

                    So I have been testing random things and I have noticed that if I ask it to tell me a joke, it actually completes that request. If I ask it for any type of information (eg. weather, time, who invented the telephone etc) that’s when it cuts off.

                    Could it be something to do with sending a request online?

                    Regards,
                    BJ Duncan

                    1 Reply Last reply Reply Quote 0
                    • S Away
                      sdetweil @BJ Duncan
                      last edited by Jun 15, 2019, 12:21 AM

                      @BJ-Duncan no… he reworked the audio in V2 to behave better… but apparently hasn’t got it all working perfect yet…

                      I noticed before similar for you… long answers worked, short were clipped

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • I Offline
                        Ivanov_d
                        last edited by Jun 16, 2019, 3:20 PM

                        This is a known issue and it is tracked in https://github.com/eouia/MMM-AssistantMk2/issues/161#issuecomment-496287957

                        You can try the various solutions proposed by the developer of the module. I have the same issue and I am waiting for a fix as well.

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        1 / 2
                        • First post
                          9/13
                          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