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.

    Alexa Goes Handsfree!

    Scheduled Pinned Locked Moved Development
    23 Posts 9 Posters 21.9k Views 8 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.
    • W Offline
      WeedWood
      last edited by WeedWood

      Hey is there a modul for it?

      1 Reply Last reply Reply Quote 0
      • bheplerB Offline
        bhepler Module Developer @d3r
        last edited by

        @d3r Wait, what? You can use Alexa’s voice service to activate on whatever phrase you like?

        Oh, this is too awesome. My wife and were trying to get our echo to wake on “Hey Asshole” (it’s a literary reference, honest) and it wouldn’t let us. I’m going to get to work on a new mirror…

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

          @bhepler Are you running it from your pi or do you have the echo/dot?
          If you are using the pi then yes you can customize the wake word which will trigger it into listening mode.

          C 1 Reply Last reply Reply Quote 0
          • KirAsh4K Offline
            KirAsh4 Moderator
            last edited by

            “Hey Dingdong!”
            “Yow Tweedledumb!”

            Or make it interactive:

            “Hey Cheech!”
            “Yes Chong?”

            A Life? Cool! Where can I download one of those from?

            1 Reply Last reply Reply Quote 1
            • D Offline
              darrene
              last edited by

              I’ve jsut set up an Amazon dev account and installing the Alexa pi code to have a play with.

              During the install, I see
              Configuration file ‘/etc/lightdm/lightdm.conf’
              ==> Modified (by you or by a script) since installation.
              ==> Package distributor has shipped an updated version.
              What would you like to do about it ? Your options are:
              Y or I : install the package maintainer’s version
              N or O : keep your currently-installed version
              D : show the differences between the versions
              Z : start a shell to examine the situation
              The default action is to keep your current version.
              *** lightdm.conf (Y/I/N/O/D/Z) [default=N] ?

              I think I should answer ‘Y’ to keep the installer happy, but thought it worth checking - @d3r can I ask what you chose?

              D 1 Reply Last reply Reply Quote 0
              • D Offline
                d3r @darrene
                last edited by d3r

                @darrene I would say press D to see what the difference is then you’ll have a better idea on how to proceed.
                Edit:
                I just ran an update on my pi and got the same prompt. lightdm is a display manager and not directly related to alexa.
                https://wiki.debian.org/LightDM

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

                  Ah, thtat’s great. Thanks @d3r.
                  All good now

                  D 1 Reply Last reply Reply Quote 0
                  • D Offline
                    d3r @darrene
                    last edited by

                    @darrene Nice. Alexa is working now?

                    D 1 Reply Last reply Reply Quote 0
                    • D Offline
                      darrene @d3r
                      last edited by darrene

                      @d3r not quite - I’m almost there but trying to login to my AWS mirror profile after authorising it and I’m failing their ridiculous ‘type the characters you see in this image’ challenge :)

                      Edit: At last! through…

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

                        It’s awesome :)

                        I’ve had Alexa tell me the day, a joke and asked her a maths question.

                        A quick demo (YouTube)

                        The detection is spot on and the response time is pretty acceptable

                        The sooner this can get made into a module the better :)

                        1 Reply Last reply Reply Quote 0
                        • KirAsh4K Offline
                          KirAsh4 Moderator
                          last edited by KirAsh4

                          The changes to the lightdm config file is probably what it’s warning you about. Remember during the MM installation, you should’ve edited that file to turn off the screen blanking. So you should always do a comparison between what your file looks like and what the vendor is releasing and apply the changes as needed.

                          A Life? Cool! Where can I download one of those from?

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

                            That’s what it was. Thanks @KirAsh4!

                            1 Reply Last reply Reply Quote 0
                            • MichMichM Offline
                              MichMich
                              last edited by

                              Didn’t look into this very much, so maybe one of you can answer this: is it possible to let Alexa execute commands or code? So we can incorporate it into MagicMirror²?

                              D 1 Reply Last reply Reply Quote 0
                              • D Offline
                                darrene @MichMich
                                last edited by darrene

                                I don’t think it can from what I’ve seen @MichMich - I could be wrong, but it isn’t obvious that it could.

                                Running the Alexa sample requires 3 terminal sessions -
                                one runs the companion service which stores the application token information and runs a listener on port 3000
                                one runs the java client under maven
                                One runs the wake word agent, running one of two engines - kitt_ai or sensory (I opted for kitt_ai)

                                I can’t tell at the moment, what information is returned by AVS, so it’s difficult to know if and how usable it is. It does support IFTTT however. Combining it with the MMM-IFTTT module, whilst not elegant, may be a workaround?

                                For what it’s worth, the install, whilst lengthy was fully automated and incredibly trouble free - it worked straight out of the box on a fresh Raspian install which already had a barebones MagicMirror2 install.

                                Also of note, every time I need to restart the java client, I am required to re-authenticate my device to get a new bearer/autentication token. These tokens do not seem to last that long and the authentication process involves logging into Amazon through a web page with an image security verification. No doubt that’s down to how this sample is implemented but might be worth knowing about

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

                                  It is possible to tell alexa to execute the codes. There are several projects using aws lamda to process the codes. This guy for example did it with his mirror.
                                  [https://forum.magicmirror.builders/topic/641/the-mystic-mirror-an-alexa-powered-magic-mirror](alexa mirror)

                                  1 Reply Last reply Reply Quote 1
                                  • C Offline
                                    carteblanche @d3r
                                    last edited by

                                    @d3r said in Alexa Goes Handsfree!:

                                    @bhepler Are you running it from your pi or do you have the echo/dot?
                                    If you are using the pi then yes you can customize the wake word which will trigger it into listening mode.

                                    How did you customize the wake word? I’m using the Alexa AVS sample app on my Rpi3 which uses snowboy as the wakeword agent and everything is working great, but would love it if I didn’t have to use the name “alexa”!

                                    D 1 Reply Last reply Reply Quote 0
                                    • D Offline
                                      d3r @carteblanche
                                      last edited by

                                      @carteblanche [https://groups.google.com/a/kitt.ai/forum/m/#!topic/snowboy-discussion/UIX2eK4ScjI](Recompile for custom wake word)
                                      You need to create your own voice model and recompile the code. Check the above link. It is pretty straight foward though I found that I get lots of false hits but that’s because my model number doesn’t have a lot of samples.

                                      C 1 Reply Last reply Reply Quote 1
                                      • C Offline
                                        carteblanche @d3r
                                        last edited by

                                        @d3r this is awesome…thanks for sharing!

                                        1 Reply Last reply Reply Quote 0
                                        • C Offline
                                          clumsy_ninja
                                          last edited by clumsy_ninja

                                          I’m really interested in adding voice control, especially a solution provided by amazon or google with good recognition.
                                          I can see in the video above alexa can answer all sorts of questions but how can this be incorporated into magic mirror to do thing like restart, show and hide modules, etc?

                                          Also, how would alexa get information about things like the current location to give travel times etc?

                                          I guess the end goal would be to have other modules controlling things like lighting (phillips hue?) and using the voice control to turn it on/off & change colour as an example.

                                          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