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

    Scheduled Pinned Locked Moved System
    421 Posts 61 Posters 561.3k Views 57 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 @Sun
      last edited by

      @sun
      Maybe. I always use BT speaker for my RPI and ATB. I cannot bear the crumpled sounds from analog or USB.

      1 Reply Last reply Reply Quote 0
      • J Offline
        jomwells
        last edited by

        This is fantastic thank you, I have got everything set up, it hears and responds (on screen) to every request - but unfortunately I get no sound (no speaking feedback), when a youtube video plays, the sound works fine, do I need to change the output device somewhere? I’m struggling to find the config for it.

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

          @jomwells is there any suspicious errors?

          S J 2 Replies Last reply Reply Quote 0
          • S Offline
            Sun @jomwells
            last edited by

            @jomwells Are you using rp3 as magic mirror? I did get sound respond now and it really ugly. I do try both sound on tv via hdmi and from usb sound card. Assume that too much modules from magic mirror load.

            1 Reply Last reply Reply Quote 0
            • S Offline
              Sun @Guest
              last edited by

              @sean I would like to know more about MMM-Gaction regarding the deviceModelId - this should be done since register the device in mmm-assistantmk2. What about deviceInstanceId, where and how to?

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

                @sun read this page carefully.
                https://developers.google.com/assistant/sdk/reference/device-registration/register-device-manual#get-access-token

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

                  @sun But In most cases, you might not need instance, because your mirror might be only one instance of your project. Instance is needed when action should select specific device for response. Try without instanceid first.

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    Sun @Guest
                    last edited by

                    @sean Thank you so much.

                    1 Reply Last reply Reply Quote 0
                    • J Offline
                      jomwells @Guest
                      last edited by

                      @sean Yes, the pm2 error logs show some alsa related errors, I assume this is why the assistant doesn’t produce audio?

                      /home/pi/.pm2/logs/MagicMirror-error.log:
                      
                      [../deps/mpg123/src/output/alsa.c:90] error: initialize_device(): cannot set format S16_LE
                      MESA-LOADER: failed to retrieve device information
                      libGL error: MESA-LOADER: failed to retrieve device information
                      [../deps/mpg123/src/output/alsa.c:94] error: initialize_device(): cannot set 1 channels
                      

                      I have a pretty fresh install of MagicMirror so shouldn’t be an issue of too many modules, im using an RPI3, and a USB sound card, thanks
                      on a side note, to get the Hotword and Assistant module to choose the correct microphone, I have had to change the input device to

                      device: 'plughw:1',
                      

                      however each time I reboot, the input devices change order and I need to edit the config file again, is there a way to stop them changing device number?

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

                        @jomwells
                        Frankly says, I’m not an expert of system administration. Especially Alsa configuration is out of my ability.
                        Anyway you should success this test.

                        arecord -d 10 test.wav & aplay test.wav

                        It should record your voice and play again.

                        It means, your mic and speaker should be default device.

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 42
                        • 43
                        • 3 / 43
                        • 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