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-Voice-Control

    Scheduled Pinned Locked Moved Utilities
    20 Posts 10 Posters 19.8k Views 11 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.
    • D Offline
      dr4ke616
      last edited by

      Yeah, this is true. In the long term I was going to try get my mirror working with the MMM-Facial-Recognition in order to activate/deactivate voice recognition, that should hopefully reduce likelihood of reaching the google quota.

      1 Reply Last reply Reply Quote 0
      • cowboysdudeC Offline
        cowboysdude Module Developer
        last edited by cowboysdude

        It’s true it the goolge speech api is limited but honestly you shouldn’t be in front of your mirror all day long talking to it LOL

        Putting those two modules together would be very cool!

        1 Reply Last reply Reply Quote 0
        • S Offline
          samydp
          last edited by

          hello,
          i have this modul SunFounder Sound Voice Sensor
          and it is on Giop 2,6,7
          but i dont now how i can install it … can you halp me ?
          best Wish

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

            Hey @samydp

            So, ive never installed before on a SunFounder Sound Voice Sensor, but if you’re running it on a Pi using the Magic Mirror framework, it should (hopefully) be a case of installing it like any other module. There are details in the README on how to do so.

            However maybe there are some other steps required in order to get it to work on the Sensor that I am not aware of.

            B 1 Reply Last reply Reply Quote 0
            • B Offline
              Baltibu @dr4ke616
              last edited by

              @dr4ke616 nice one :-)
              i Get it finally work ! it answer very quickly … but it s not so easy to get it work with other Modules …
              in the readme file, there are some infos . but they didnt help so much .

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

                @dr4ke616 great work on creating this module!

                I have installed the module on my Raspberry Pi 3 and am having some issues getting it to work. I checked the console in debug and saw the following error message for MMM-Voice-Control. Any idea what is causing the “network” error? thanks in advance!

                SpeechRecognitionError {error: “network”, message: “”, type: “error”, target: SpeechRecognition, currentTarget: SpeechRecognition…}
                bubbles:false
                cancelBubble:false
                cancelable:false
                composed:false
                currentTarget:
                SpeechRecognition
                defaultPrevented:false
                error:“network”
                eventPhase:0
                message:“”
                path:Array[0]
                returnValue:true
                srcElement:SpeechRecognition
                target:SpeechRecognition
                timeStamp:9665.535
                type:“error”

                D S 2 Replies Last reply Reply Quote 0
                • D Offline
                  dr4ke616 @carteblanche
                  last edited by

                  @carteblanche

                  Kinda hard to say. Could be any number of things.

                  One thing to note is that the module uses annyang package, which relies on Google Speech API. So perhaps the error you are seeing is related to rate limiting on Google’s Speech API. I believe it is something like 50 requests per day (when using for free).

                  C 1 Reply Last reply Reply Quote 0
                  • D Offline
                    dr4ke616 @Baltibu
                    last edited by

                    Hey @Baltibu

                    Yeah, i haven’t done much work on actually integrating it with other modules yet. At the moment it just sends notification like messages to other modules, so other modules can then react to it.

                    There is probably a better more generic way to achieve this. So I am open to ideas.

                    1 Reply Last reply Reply Quote 0
                    • B Offline
                      Baltibu
                      last edited by Baltibu

                      hey thanks for your answer…
                      i tried to do the same but the problem i didnt get a comminication between two defferent module …
                      I get your MMM-Dublin-bus als Referenz . but it still difficult.
                      by the other should I owerwrite the NotificationReceived module ? or the socketNotificationReceived ?

                      D 1 Reply Last reply Reply Quote 0
                      • D Offline
                        dr4ke616 @Baltibu
                        last edited by

                        @Baltibu

                        So, it should (if all working ok) be the case that you add a command here. The first paramater references a language entry in the translations directory.

                        For example in commands.js we register the key dublinbus_start to a function that sends a notification. Then in your translations files you can add what to actually say (in what ever language), for example here.

                        Then in your own module you override notificationReceived and check for the message sent from your command, as in DUBLINBUS_START.

                        I understand that this is probably overly complex way of doing this. I do believe this can be done in a better way.

                        B 1 Reply Last reply Reply Quote 0
                        • B Offline
                          Baltibu @dr4ke616
                          last edited by

                          @dr4ke616 thanks a lot .
                          I added some Command , and i cann see that all my module get the Nofication from the Sender( MMM-Voice-Control) …
                          but any of this module react of my Notifation …
                          I will try tonight one more time … hope that I get it work.
                          I will give some feedback…

                          D 1 Reply Last reply Reply Quote 0
                          • D Offline
                            dr4ke616 @Baltibu
                            last edited by dr4ke616

                            @Baltibu

                            The current design of this module is focused more on allowing other developers to create modules with voice recognition capabilities rather than it just “work out of the box” with all other modules running on your mirror.

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

                              @dr4ke616 I haven’t used annyang before and not familiar with how it works vs other options, but I have used Google Speech API (+ snowboy hotword detection) using a different smart-mirror project…

                              if this module is using Google Speech API, I would think we would need to input our own API keys but I didn’t see that in the config.

                              B 1 Reply Last reply Reply Quote 0
                              • F Offline
                                FullOfOrange
                                last edited by

                                @dr4ke616 I don’t know how to use USB mic in your module. Before I use this, do I need set some config files? I try to downgrade annyang version to 2.0.0 but I can’t use this. How to do?

                                1 Reply Last reply Reply Quote 0
                                • B Offline
                                  Bobby @carteblanche
                                  last edited by

                                  @carteblanche Hi, in the “smart-mirror project” the voice-module works fine with Google Speech API (+ snowboy hotword detection) but i like this MM2 project, because there are more modules. But i need this voice-controll. I have also an google api key. Is it possible to integrate the voice module from the other project in this voice module? Thx Bobby

                                  cowboysdudeC 1 Reply Last reply Reply Quote 0
                                  • cowboysdudeC Offline
                                    cowboysdude Module Developer @Bobby
                                    last edited by

                                    @Bobby Honestly I don’t believe people here want Google anywhere near their mirrors. Google is limited to 50 calls per day… also Google likes to collect ‘data’ on everyone… there are just two reasons why no one seems interested I’m sure there’s more… There are already a couple of very good voice modules written for MM2… @strawberry-3-141 build a VERY good voice module that actually incorporates and can use data from some of the other modules.

                                    Yes I’ve seen, tested and played with the other mirror and it was cool indeed but unless you’re a programmer you have very little control over what you get with that one…you have to take what they give you. Don’t get me wrong it’s nice but lacking in an open source way… average people can’t really get what they need unless they request and that request actually happens which takes time as there aren’t enough people working on that project.

                                    1 Reply Last reply Reply Quote 1
                                    • S Offline
                                      samuel-barrado @carteblanche
                                      last edited by samuel-barrado

                                      @carteblanche searching out there I’ve seen this. It seems that google has shut down the Chrome Speech API for use in shell environments like Electron. You can try starting MM2 in chromium browser. I have the same error but when I started on chromium the error disappears.

                                      A “dirty” workaround is start MM2 in server mode:

                                      node servonly
                                      

                                      and later start chromium in kiosk mode.

                                      chromium --noerrdialogs --kiosk 127.0.0.1:8080
                                      

                                      i’ll keep on searching…

                                      1 Reply Last reply Reply Quote 0
                                      • P Offline
                                        pepemujica
                                        last edited by

                                        Hi! With this module can I show/hide modules such as clock or weather, or even change profile with profileswitcher?
                                        Kind regards

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