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 (v3)

    Scheduled Pinned Locked Moved System
    135 Posts 27 Posters 84.8k Views 25 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.
    • ? Offline
      A Former User
      last edited by

      At this moment, only French and English is enabled. I will update scripts for other supported language very soon !

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

        Humm… I will try this week end ;)

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

          @dvbit I have updated myMagicWord and post all supported language script
          see wiki myMagicWord

          M 1 Reply Last reply Reply Quote 0
          • K Offline
            Kevinho195
            last edited by

            @Sean Thanks for your fantastic Assistant! I tried to install it with your new installer, but I failed to set up the correct speaker. It did not find my 3.5mm Jack speaker. How can I use the Jack output instead of usb?

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

              @Kevinho195
              For speaker, frankly said, you don’t need any setup. Just plug the jack in then set it as default sound output of RPI (You can do it on Volume Icon of Raspbian Desktop Menu bar)
              If your chromium browser can play some audio (like youtube site), it will work on my module.

              1 Reply Last reply Reply Quote 0
              • ChrisC Offline
                Chris @Guest
                last edited by

                @Sean
                @Chris said in MMM-AssistantMk2 (v3):

                I usually use Gassistpi which is not implemented in MagicMirror.

                This reacted to Ok Google. That is why I thought it worked similarly.

                Thank you for this additional information,

                I will take the test this weekend

                Regards,

                Hello,

                I just did a complete installation to test this module, I must admit that I really do not regret it.

                I like Gassistpi but I must recognize your module is really very accomplished.

                It is impressive in terms of reactivity and no longer triggers unexpectedly as Gassitpi did sometimes.

                The installation method is really very well designed.

                Really nice job.

                @Bugsounet
                Chapeau bas Messieurs

                Regards,

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

                  @Chris : merci à toi chris (je vois que tu es français), on a mis nos talents ensemble :) et c’est pas fini !


                  @Chris: thanks to you chris (I see that you are french), we put our talents together :) and it’s not finish !

                  @bugsounet

                  1 Reply Last reply Reply Quote 0
                  • N Offline
                    nakedrabbit
                    last edited by

                    Congratulations, @Sean on a new build! The installation method went through like a charm, and I’m even happy to report that my build, a Pi3 with Google Hat, responded perfectly, even though v2 would not recognize it.

                    But I do have one snag trying to implement it.

                    Raspbian Stretch, Pi3B+, with Google Voice Hat, latest MM. Clean install of AssistantMk2, although I had an assistant.json and profile saved from a previous iteration. Installation went, as I say, beautifully, with the GCC 7 downgrade, proper assignment of the Google Hat input and output and everything. But MM would not load, and my logs showed the same gRPC module error we used to get on v2 from not having the right npm install.

                    So I followed the old instructions from that build, namely

                    npm install --save-dev electron-rebuild
                    ./node_modules/.bin/electron-rebuild

                    in both the AssistantMk2 and Hotword directories, and that seems to have fixed the issue.

                    Now I’ve got it working, except it’s not working. The first “smartmirror” command engages the Assistant, the tone sounds, but no matter what I say, the module says it did not understand, goes away, and cannot be invoked again unless I restart MM entirely. Logs end with

                    [HOTWORD] Final Result: { detected: true,
                    0|mm | hotword: ‘SMARTMIRROR’,
                    0|mm | file: ‘temp/afterRecording.wav’ }

                    …but not a lot more info than that. Could be related to the mmap issue I know you are working on, but what do I know? So I thought I would report it.

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

                      @nakedrabbit
                      thanks for report failed install, i will inspect :)

                      if log don’t show mmap error, i think it’s not this.
                      It could be a noisy environement or a mismake configuration

                      have you read this ?

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

                        @nakedrabbit : can you tell me more about npm install problem ?
                        because i execute same commands with npm install

                        N 1 Reply Last reply Reply Quote 0
                        • N Offline
                          nakedrabbit @Guest
                          last edited by

                          @Bugsounet Sure! When I used the auto installer on my RPi3B+, running Raspbian Stretch (I list all these because maybe it’s OK on Buster, I do not know) the npm install created “node-v64-linux-arm-glibc” in the ~/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/node/extension_library/ directory

                          I know this because I’m running MM with PM2, and the PM2 logs clearly stated that the plugin was looking for “electron-v3.0-linux-arm-glibc” at that location and could not find it.

                          This was a well-documented bug with the v2 install process, and the commands that fixed it were

                          npm install --save-dev electron-rebuild
                          ./node_modules/.bin/electron-rebuild

                          These are run from the MMM-AssistantMk2 directory AND the MMM-Hotword directory. Those were easy!

                          As to the memory issue, I went back just now to check the pm2 logs for errors, and yes, I see these entries:

                          0|mm | mmap() failed: Cannot allocate memory
                          0|mm | Failed to create permanent mapping for memfd region with ID = 3774675295
                          0|mm | Ignoring received block reference with non-registered memfd ID = 3774675295

                          But I was not sure if they were related to the npm install issue or not. I thought they might be leftover from when the proper grpc files were not there, because, frankly, I know nothing about this stuff.

                          And thirdly, yes, I did read about the proper config for the v3 version, and everything seems to be fine there. The plugin loads fine, even listens to me, but simply does not process the commands and then kind of locks up. The rest of the mirror runs fine, but the voice command is no longer responsive.

                          I set up MMM-Buttons to trigger the Assistant as well, and that also works to set off the listener, with exactly the same result - no parsing of the voice command, the eventual “Can’t understand this” dialogue box, and unresponsive until restart.

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

                            I have open an issue for this for try to correct it but it’s an unstable branch (nightly build / dev)
                            If you have it, you can test :)

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

                              Error “mmap () failed: Cannot allocate memory” will be fixed from version 3.1.0
                              we have coded a secondary code that does not use HTML5 audio.

                              possibly, if you are not using bluetooth.
                              it seems that pulseaudio is the source of the problem

                              if you don’t use bluetooth try;

                              sudo apt-get autoremove --purge pulseaudio
                              

                              possibly a restart of the RPI to finish the changes.
                              and check the parameters with arecord -l, aplay -l
                              this was reported by a user.
                              I personally have no mmap error because I uninstall pulseaudio during the installation of raspbian

                              OR wait release V3.1.0

                              1 Reply Last reply Reply Quote 0
                              • M Offline
                                meusprojetoskali @Guest
                                last edited by

                                @Bugsounet
                                Hello Friend! Please include pt-BR (Portuguese Brazil), we Brazilians are always overlooked in translations even though it is the largest country in Latin America with the largest population and major producers and consumers of technologies.

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

                                  @meusprojetoskali said in MMM-AssistantMk2 (v3):

                                  Hello Friend! Please include pt-BR (Portuguese Brazil), we Brazilians are always overlooked in translations even though it is the largest country in Latin America with the largest population and major producers and consumers of technologies.

                                  Makes your contribution as PR for Portuguese Brazillian translation. We’ll accept to merge.

                                  M 1 Reply Last reply Reply Quote 0
                                  • M Offline
                                    meusprojetoskali @Guest
                                    last edited by

                                    This post is deleted!
                                    1 Reply Last reply Reply Quote 0
                                    • M Offline
                                      meusprojetoskali @Guest
                                      last edited by

                                      Excuse me, but in the Portuguese translation the answer was meaningless, can you explain it in other words?
                                      What is a RP contribution?

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

                                        @meusprojetoskali
                                        This module needs two kinds of translations.

                                        1. Basic terms used by the module.
                                          https://github.com/eouia/MMM-AssistantMk2/tree/master/translations
                                          Error messages or some basic text would be used by the module itself. You can contribute by translating these files.
                                          Send us translation direclty.
                                          Or make a fork from the original github repository to your own repository. Add your work, then make Pull Request(PR) to the original repository. If the original author( - we) accept it, your working will be merged into the original repository.

                                        2. vocal patterns for locale on recipes.
                                          Recipe also might needs some translations. For example, with-MMM-Youtube.js recipe (https://github.com/eouia/MMM-AssistantMk2/blob/master/recipes/with-MMM-Youtube.js) is written in English. So, stop video as a pattern of transcriptionHook is used. If you could provide with-MMM-Youtube.PT_BR.jswith translation of stop video, send us directly or make a PR as I’ve said above.

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

                                          MMM-AssistantMk2 v3.1.0-1 is out

                                          The AMk2 team

                                          M 1 Reply Last reply Reply Quote 0
                                          • M Offline
                                            meusprojetoskali @Guest
                                            last edited by

                                            @Bugsounet said in MMM-AssistantMk2 (v3):

                                            MMM-AssistantMk2 v3.1.0-1 is out

                                            The AMk2 team

                                            git pull That’s enough?

                                            1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 7
                                            • 2 / 7
                                            • 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