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 problems when using electron-rebuild

    Scheduled Pinned Locked Moved Troubleshooting
    40 Posts 6 Posters 20.3k Views 6 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 @yep_DD
      last edited by

      @yep_dd
      Currently, I’m not in front of my device, so I write this without test.

       npm install [package]@[version]
      

      That is a usual form.

      Thus,

      cd ~/MagicMirror/modules/MMM-AssistantMk2
      rm -rf ./node_modules/grpc
      npm install grpc@1.13
      

      would work, I think.

      1 Reply Last reply Reply Quote 0
      • D Offline
        dvbit
        last edited by dvbit

        if anybody needs a working raspie3b+ image with hotword/notification/assistant installed drop a pm

        :-)

        1 Reply Last reply Reply Quote 0
        • Y Offline
          yep_DD
          last edited by

          @Sean
          works like a charm, thank you

          1 Reply Last reply Reply Quote 0
          • Y Offline
            yep_DD
            last edited by

            @Sean

            off topic: is there a way to set the audio output (Device / Program) routing like “record” for the mic?

            ? 2 Replies Last reply Reply Quote 0
            • ? Offline
              A Former User @yep_DD
              last edited by

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • ? Offline
                A Former User @yep_DD
                last edited by A Former User

                @yep_dd
                I didn’t make it configurable much. But you can modify ‘node_helper.js’ by yourself

                var speaker = new Speaker({
                channels: 1,
                sampleRate: cfgInstance.conversation.audio.sampleRateOut,
                });

                You can add here ‘device:”hw:1,0”,”. I’ll fix them to be configurable next update.

                1 Reply Last reply Reply Quote 0
                • Y Offline
                  yep_DD
                  last edited by

                  @Sean

                  cool, works, thank you so much. Would you know where youtube audio is configured? Because that still uses the standard.

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

                    @yep_dd I don’t know about that, sorry. :| I think you should adjust your mixer (alsa? or pulse?)

                    1 Reply Last reply Reply Quote 0
                    • Y Offline
                      yep_DD
                      last edited by yep_DD

                      @Sean
                      correct, works. Modified /usr/share/alsa/alsa.conf for the default sound card and added a “record” for MMM-Hotkey so it wouldn’t use that as default: working just fine.

                      Just stuttering, the audio output as well as video. Let’s see why… when audio is played through the 3.5mm jack it works fine.

                      1 Reply Last reply Reply Quote 0
                      • Y Offline
                        yep_DD
                        last edited by yep_DD

                        @Sean

                        what is your CPU usage when playing youtube videos and using the google assistent? I am using OpenGL for rendering… but videos and audio via HDMiIseems to stutter

                        D 1 Reply Last reply Reply Quote 0
                        • D Offline
                          dvbit @yep_DD
                          last edited by

                          @yep_dd I am using rpi3b+ sound output via HDMI.no stutter.

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

                            @dvbit Frankly I use mainly Asus Tinker Board. I couldn’t satisfied with performance of RPI3,
                            anyway, usually, with BT speaker, RPI3 has good enough sound. For video, I think non-HD youtube video can be played enough.

                            D 1 Reply Last reply Reply Quote 0
                            • D Offline
                              dvbit @Guest
                              last edited by

                              @sean yes I saw your posts and realized it. Also had a look and thought about getting an asus but finally went for raspb3 for gpio support (at least in my readings it was saying it was suboptimal…)
                              I might give an AEON with atom (that I have) a ride if more power is needed.

                              PS: I went through the google sdk to understand current capabilities (especially in my language) and saw the output limitations you mentionned.
                              I could not find a list of supported features compared to smartphone assitant. do you have any pointer? tx

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

                                @dvbit For screenOutput? At this moment, Nothing. It is experimental stage. Screenoutput is too tight binded with specific hw. By example, original search results of video is not playable. It is assumed to activate app on smartTv. I had to parse static html output to catch youtube Video Id.

                                1 Reply Last reply Reply Quote 0
                                • Y Offline
                                  yep_DD
                                  last edited by

                                  I switched back to headphone jack output and it is the same. Video and sound stutters.

                                  1 Reply Last reply Reply Quote 0
                                  • Y Offline
                                    yep_DD
                                    last edited by

                                    @Sean

                                    Tinker Board looks promising… will take me a while to set up and I am working the next couple of days, let’s see :).

                                    1 Reply Last reply Reply Quote 0
                                    • Y Offline
                                      yep_DD
                                      last edited by

                                      @Sean I’ve just tried the google voice hat with your module, it works fine and a lot smoothe for some reason. I disabled the BCM soundcard and no stuttering except of the first google assistent replies right after boot up. Still on RPI3, let’s see with tinker board.

                                      1 Reply Last reply Reply Quote 0
                                      • Y Offline
                                        yep_DD
                                        last edited by

                                        one more thing, I noticed when using the newsfeed module it stutters when fading to the next headline, can anyone confirm that? Performance is 10000x better with TinkerBoard than with PI3

                                        1 Reply Last reply Reply Quote 0
                                        • Y Offline
                                          yep_DD
                                          last edited by

                                          If anyone is interested, no matter what Board you use the performance is dramatically reduced as soon as you rotate the screen. This is a measurement of PI3:

                                          • I executed glxgears without vsync.
                                          • measurements are average of fps

                                          0_1535224120015_Screenshot 2018-08-25 at 21.08.03.png

                                          So without rotation the performance on the pi3 is a lot better. On the Tinkerboard it is even worse as it only supports Open GL ES and I have not found a solution to get that running with Electron.

                                          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
                                          • 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