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.

    Voice/motion control

    Scheduled Pinned Locked Moved Unsolved Requests
    utility
    72 Posts 15 Posters 98.6k Views 14 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.
    • T Offline
      tyho @KirAsh4
      last edited by

      @KirAsh4 @sullit @Mitchfarino @MichMich
      i managed to make a github. But i still don’t get the pull push thing but that will come later.

      You can see what i have made so far here: https://github.com/ME-TYHO/MM2-Voice-Control-Module

      I hope some guys here can help make this module.

      1 Reply Last reply Reply Quote 1
      • A Offline
        alexyak
        last edited by

        Besides the ability to recognize the speech you also need to start the recognition with annyang. There should be an always listening component that reacts on a key word and starts annyang.

        T 1 Reply Last reply Reply Quote 0
        • T Offline
          tyho @alexyak
          last edited by

          @alexyak at the moment annyang is always lisening. If i come back in à couple of hours i can still make my commands.

          A 1 Reply Last reply Reply Quote 0
          • A Offline
            alexyak @tyho
            last edited by

            @tyho You will quickly run out of quota if it listens continuously.

            1 Reply Last reply Reply Quote 0
            • A Offline
              alexyak
              last edited by

              It looks like this guy has figured it out:

              http://docs.smart-mirror.io

              T 1 Reply Last reply Reply Quote 0
              • T Offline
                tyho @alexyak
                last edited by

                @alexyak true, hè got à separate speech module for unlock annyang. Still you get max 50 commands a day. If i use annyang in chrome i got unlimited commands. So i guess it has something to do with api key what is burned into chrome browser. Maybe there is a way to use this api key.

                1 Reply Last reply Reply Quote 0
                • T Offline
                  tyho
                  last edited by tyho

                  i can’t get it to work with the sphinx package. simply cuz i am not smart enough -_-
                  I get pocketsphinx regognize my words but not in the js envirement and i don’t get response out of it.

                  I think i just use “blather” for the time being to control my monitor on and off. I hope someone make a voice module soon. ^^

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    tyho
                    last edited by

                    @michmich @KirAsh4 running a simple html with the following code gets me more results then 50. and also run more then a hour already.

                    I run it with https in chrome and get:
                    0_1469556674964_upload-8cd7fc28-ea4b-4861-9aa3-a711d2c8e440

                    has this something to do with chrome that there is no limit?

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

                      What’s the HTML/CSS output look like? That’s usually the first thing to look at when stuff like this happens and it’s not the expected result.

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

                      T 1 Reply Last reply Reply Quote 0
                      • T Offline
                        tyho
                        last edited by

                        nvm i already see it depends on the chrome api key and not the chromium…

                        What about cloud voice api?

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

                          FYI, setting 'TEXTAREA' size works fine in Chrome, both by using 'cols' and 'rows' as well as using CSS styling 'width' and 'height'.

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

                          1 Reply Last reply Reply Quote 0
                          • T Offline
                            tyho
                            last edited by

                            Sorry for spamming what about: https://github.com/cmusphinx/node-pocketsphinx

                            1 Reply Last reply Reply Quote 0
                            • T Offline
                              tyho @KirAsh4
                              last edited by

                              @KirAsh4 The output is exactly what i want. It’s just the proof i get over the api limit of 50 request/day when i use chrome. The thing is when i use this in electron/chromium i have a limit of 50…
                              I am still searching for a way to get around the limit or perhaps use another api/voice recognizer…

                              1 Reply Last reply Reply Quote 0
                              • A Offline
                                alexyak
                                last edited by

                                I think using https://snowboy.kitt.ai is the best approach right now for detecting a hot word and then continuing with the google one (annyang). The same way the guy at the http://docs.smart-mirror.io has done it.

                                1 Reply Last reply Reply Quote 1
                                • T Offline
                                  tyho
                                  last edited by

                                  @alexyak yea, i have seen the smart-mirror code. But i don’t pref 2 voice modules… the thing is if your playing around with the map function (zoom in, zoom in, zoom in, go to, zoom out, enz) then you run out of api calls fast.
                                  I give up on the voice control module… i hope there will be one soon ^^

                                  1 Reply Last reply Reply Quote 0
                                  • A Offline
                                    alexyak
                                    last edited by

                                    Actually I’ve started looking at this: https://syl22-00.github.io/pocketsphinx.js/ Need to test the performance on RaspPi

                                    1 Reply Last reply Reply Quote 1
                                    • R Offline
                                      ronny3050 Module Developer
                                      last edited by

                                      I have to second @alexyak and @tyho. Relying on chrome keys is not a good solution, especially when the goal is to interact with mirror through voice completely. Pocketsphinx is a good solution and I am getting it to work on RPi as well.

                                      1 Reply Last reply Reply Quote 0
                                      • T Offline
                                        tyho
                                        last edited by tyho

                                        Yea i have finaly installed node-pocketsphinx. It needs a lot of dependeties. I start find out now how get a voice command out of it. Are u using node-pocketsphinx as well? Or are u using it standalone? Or maybe the pocketsphinx.js?
                                        I like to hear if you get something working.

                                        1 Reply Last reply Reply Quote 1
                                        • T Offline
                                          tyho
                                          last edited by

                                          Ok, I find out that https://syl22-00.github.io/pocketsphinx.js/ is the best bet.

                                          I have run pocketsphinx before and it’s really fast. So i have no doubt the js port is also good.

                                          But with my lack of skill i don’t know how to create a module. Who can?

                                          @michmich and @KirAsh4 you already seen this one?

                                          KirAsh4K 1 Reply Last reply Reply Quote 1
                                          • R Offline
                                            ronny3050 Module Developer
                                            last edited by

                                            I have tried standalone, but I am currently trying the node version. I’ll let you know once something gets going! Thanks.

                                            T 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
                                            • 3 / 4
                                            • 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