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.

    Advise for a voice assistant

    Scheduled Pinned Locked Moved General Discussion
    21 Posts 7 Posters 10.8k Views 9 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.
    • thedoorsfanaticT Offline
      thedoorsfanatic @ejay-ibm
      last edited by

      @ejay-ibm
      I was able to run MK2assistant but never managed to install Hotword.
      Is there a tutorial out there which shows me how to do it, absolute beginner style?

      My Smart Mirror YouTube playlist: https://www.youtube.com/playlist?list=PL9Iv_4Mvy6o2tnvdhNBstVWNefgUP9ELp

      ejay-ibmE T 2 Replies Last reply Reply Quote 0
      • ejay-ibmE Offline
        ejay-ibm Project Sponsor Module Developer @thedoorsfanatic
        last edited by

        @thedoorsfanatic
        I think the Readme here : https://github.com/eouia/MMM-Hotword/
        is pretty clear, that is what I followed and I have it working directly.
        check out the Tip section to include hotword in the mk2 assistant and you should be good.
        If you run into issue you can share your config file and I can have a look .

        Ejay

        thedoorsfanaticT 1 Reply Last reply Reply Quote 0
        • thedoorsfanaticT Offline
          thedoorsfanatic @ejay-ibm
          last edited by

          @ejay-ibm
          all right, thanks, I will try it again but usually it failed when trying to install snowboy

          My Smart Mirror YouTube playlist: https://www.youtube.com/playlist?list=PL9Iv_4Mvy6o2tnvdhNBstVWNefgUP9ELp

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

            @thedoorsfanatic
            Give me a telegram When you are stuck on. Telegram:@eouia

            1 Reply Last reply Reply Quote 0
            • T Offline
              THeStigh @thedoorsfanatic
              last edited by

              @thedoorsfanatic

              What hardware and OS are you using ?

              thedoorsfanaticT 1 Reply Last reply Reply Quote 0
              • thedoorsfanaticT Offline
                thedoorsfanatic @THeStigh
                last edited by

                @THeStigh
                I am using a Raspi 3 B+ and latest release of Stretch and MagicMirror.
                I am a newbie and though I tried all the troubleshooting tipps described I wasn’t able to install Hotword and snowboy.

                My Smart Mirror YouTube playlist: https://www.youtube.com/playlist?list=PL9Iv_4Mvy6o2tnvdhNBstVWNefgUP9ELp

                T 1 Reply Last reply Reply Quote 0
                • T Offline
                  THeStigh @thedoorsfanatic
                  last edited by

                  @thedoorsfanatic Snowboy can be tricky, but @sean has made some good troubleshooting guides on the page for MMM-Hotword. But you can delete the MMM-Hotword folder and try to re-install it following these instructions to do it quite manually. If it fails, you at least will get a clear picture of where it actually failed:

                  cd ~/MagicMirror/modules/
                  sudo apt-get install libmagic-dev libatlas-base-dev sox libsox-fmt-all
                  git clone https://github.com/eouia/MMM-Hotword.git
                  cd MMM-Hotword
                  npm install
                  
                  cd ~/MagicMirror/modules/MMM-Hotword/node_modules/snowboy
                  npm install --save-dev electron-rebuild
                  npm install nan
                  ./node_modules/.bin/electron-rebuild
                  
                  1 Reply Last reply Reply Quote 2
                  • thedoorsfanaticT Offline
                    thedoorsfanatic
                    last edited by

                    This is the error code:

                    snowboy@1.3.1 install /home/pi/MagicMirror/modules/MMM-Hotword/node_modules/snowboy
                    node-pre-gyp install --fallback-to-build

                    node-pre-gyp ERR! Tried to download(403): https://snowboy-release-node.s3-us-west-2.amazonaws.com/snowboy/v1.3.1/Release/snowboy-v1.3.1-node-v64-linux-arm.tar.gz
                    node-pre-gyp ERR! Pre-built binaries not found for snowboy@1.3.1 and node@10.15.2 (node-v64 ABI, glibc) (falling back to source compile with node-gyp)
                    node-pre-gyp ERR! Tried to download(undefined): https://snowboy-release-node.s3-us-west-2.amazonaws.com/snowboy/v1.3.1/Release/snowboy-v1.3.1-node-v64-linux-arm.tar.gz
                    node-pre-gyp ERR! Pre-built binaries not found for snowboy@1.3.1 and node@10.15.2 (node-v64 ABI, glibc) (falling back to source compile with node-gyp)
                    internal/modules/cjs/loader.js:583
                    throw err;
                    ^

                    Error: Cannot find module ‘nan’
                    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
                    at Function.Module._load (internal/modules/cjs/loader.js:507:25)
                    at Module.require (internal/modules/cjs/loader.js:637:17)
                    at require (internal/modules/cjs/helpers.js:22:18)
                    at [eval]:1:1
                    at Script.runInThisContext (vm.js:96:20)
                    at Object.runInThisContext (vm.js:303:38)
                    at Object. ([eval]-wrapper:6:22)
                    at Module._compile (internal/modules/cjs/loader.js:689:30)
                    at evalScript (internal/bootstrap/node.js:587:27)
                    gyp: Call to ‘node -e “require(‘nan’)”’ returned exit status 1 while in binding.gyp. while trying to load binding.gyp
                    internal/modules/cjs/loader.js:583
                    throw err;
                    ^

                    Error: Cannot find module ‘nan’
                    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
                    at Function.Module._load (internal/modules/cjs/loader.js:507:25)
                    at Module.require (internal/modules/cjs/loader.js:637:17)
                    at require (internal/modules/cjs/helpers.js:22:18)
                    at [eval]:1:1
                    at Script.runInThisContext (vm.js:96:20)
                    at Object.runInThisContext (vm.js:303:38)
                    at Object. ([eval]-wrapper:6:22)
                    at Module._compile (internal/modules/cjs/loader.js:689:30)
                    at evalScript (internal/bootstrap/node.js:587:27)
                    gyp: Call to ‘node -e “require(‘nan’)”’ returned exit status 1 while in binding.gyp. while trying to load binding.gyp
                    gyp ERR! configure error
                    gypgyp ERR! stack Error: gyp failed with exit code: 1
                    gyp ERR! stack at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:345:16)
                    ERR!gyp ERR!configure error
                    stack at ChildProcess.emit (events.js:189:13)
                    gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
                    gyp ERR! System Linux 4.14.98-v7+
                    gyp ERR!gyp stack Error: gyp failed with exit code: 1
                    ERR!gyp commandERR! “/usr/bin/node” “/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “configure” “–fallback-to-build” “–module=/home/pi/MagicMirror/modules/MMM-Hotword/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm/snowboy.node” “–module_name=snowboy” “–module_path=/home/pi/MagicMirror/modules/MMM-Hotword/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm”
                    stack at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:345:16)
                    gyp gypERR! ERR!stack at ChildProcess.emit (events.js:189:13)
                    cwdgyp /home/pi/MagicMirror/modules/MMM-Hotword/node_modules/snowboy
                    ERR! gypstack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
                    ERR! node -v v10.15.2
                    gyp ERR! node-gyp -v v3.8.0
                    gyp ERR! not ok
                    gyp ERR! System Linux 4.14.98-v7+
                    gyp ERR! command “/usr/bin/node” “/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “configure” “–fallback-to-build” “–module=/home/pi/MagicMirror/modules/MMM-Hotword/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm/snowboy.node” “–module_name=snowboy” “–module_path=/home/pi/MagicMirror/modules/MMM-Hotword/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm”
                    gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-Hotword/node_modules/snowboy
                    gyp ERR! node -v v10.15.2
                    gyp ERR! node-gyp -v v3.8.0
                    gyp ERR! not ok
                    node-pre-gyp ERR! build error
                    node-pre-gyp ERR! stack Error: Failed to execute ‘/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/home/pi/MagicMirror/modules/MMM-Hotword/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm/snowboy.node --module_name=snowboy --module_path=/home/pi/MagicMirror/modules/MMM-Hotword/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm’ (1)
                    node-pre-gyp ERR! stack at ChildProcess. (/home/pi/MagicMirror/modules/MMM-Hotword/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
                    node-pre-gyp ERR! stack at ChildProcess.emit (events.js:189:13)
                    node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:970:16)
                    node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
                    node-pre-gyp ERR! System Linux 4.14.98-v7+
                    node-pre-gyp ERR! command “/usr/bin/node” “/home/pi/MagicMirror/modules/MMM-Hotword/node_modules/.bin/node-pre-gyp” “install” “–fallback-to-build”
                    node-pre-gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-Hotword/node_modules/snowboy
                    node-pre-gyp ERR! node -v v10.15.2
                    node-pre-gyp ERR! node-pre-gyp -v v0.6.39
                    node-pre-gyp ERR! not ok
                    Failed to execute ‘/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/home/pi/MagicMirror/modules/MMM-Hotword/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm/snowboy.node --module_name=snowboy --module_path=/home/pi/MagicMirror/modules/MMM-Hotword/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm’ (1)
                    npm WARN MMM-Hotword@1.1.0 No repository field.

                    npm ERR! code ELIFECYCLE
                    npm ERR! errno 1
                    npm ERR! snowboy@1.3.1 install: node-pre-gyp install --fallback-to-build
                    npm ERR! Exit status 1
                    npm ERR!
                    npm ERR! Failed at the snowboy@1.3.1 install script.
                    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

                    My Smart Mirror YouTube playlist: https://www.youtube.com/playlist?list=PL9Iv_4Mvy6o2tnvdhNBstVWNefgUP9ELp

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

                      @ejay-ibm, @THeStigh i have installed MMM-Hotword. I hope correctly? as i got only warning via npm like

                      npm WARN MMM-Hotword@1.1.0 No repository field.
                      pi@raspberrypi:~/MagicMirror/modules/MMM-Hotword $ npm install --save snowboy
                      npm WARN deprecated cryptiles@2.0.5: This version is no longer maintained. Please upgrade to the latest version.
                      npm WARN deprecated boom@2.10.1: This version is no longer maintained. Please upgrade to the latest version.
                      npm WARN deprecated hoek@2.16.3: This version is no longer maintained. Please upgrade to the latest version.
                      npm WARN MMM-Hotword@1.1.0 No repository field.
                      

                      I am not sure how i can test it tho?
                      Or there is nothing to expect with only MMM-hotword installed?
                      (sorry if my question is stupid :) )

                      S ? 2 Replies Last reply Reply Quote 0
                      • S Offline
                        sdetweil @bibi
                        last edited by

                        @bibi start mirror in dev mode

                        npm start dev
                        

                        Select the console tab in the developers window

                        You should see MMM-Hotword sending notifications of the words it recognizes

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

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

                          @bibi

                          npm WARN MMM-Hotword@1.1.0 No repository field.
                          pi@raspberrypi:~/MagicMirror/modules/MMM-Hotword $ npm install --save snowboy
                          npm WARN deprecated cryptiles@2.0.5: This version is no longer maintained. Please upgrade to the latest version.
                          npm WARN deprecated boom@2.10.1: This version is no longer maintained. Please upgrade to the latest version.
                          npm WARN deprecated hoek@2.16.3: This version is no longer maintained. Please upgrade to the latest version.
                          npm WARN MMM-Hotword@1.1.0 No repository field.

                          You can ignore some WARN unless your program is working.

                          1 Reply Last reply Reply Quote 1
                          • B Offline
                            bibi
                            last edited by

                            @ejay-ibm, i wanted to follow your good practice and update MM to latest (ok) and OS to stretch (ok) but now it pm2 won’t start MM automatically as it did in the past… would kindly help me to solve this issue before i can install mk2?
                            thx alot for any help as well

                            Mykle1M 1 Reply Last reply Reply Quote 0
                            • Mykle1M Offline
                              Mykle1 Project Sponsor Module Developer @bibi
                              last edited by

                              @bibi

                              https://github.com/MichMich/MagicMirror/wiki/Auto-Starting-MagicMirror

                              Create a working config
                              How to add modules

                              1 Reply Last reply Reply Quote 1
                              • B Offline
                                bibi
                                last edited by

                                @Mykle1, thx for your post. It appears that when i want to check npm version, the system issues :

                                pi@raspberrypi:~ $ npm -v
                                -bash: npm: command not found
                                

                                Therefore something went wrong during the system upgrade to stretch.
                                If i am not wrong npm comes along with nodejs which i have current version

                                pi@raspberrypi:~ $ nodejs -v
                                v8.11.1
                                

                                I think i would just install it again but i don’t know if I should do it from /home/pi or from inside /home/pi/MagicMirror ?

                                Mykle1M 1 Reply Last reply Reply Quote 0
                                • Mykle1M Offline
                                  Mykle1 Project Sponsor Module Developer @bibi
                                  last edited by

                                  @bibi said in Advise for a voice assistant:

                                  I think i would just install it again but i don’t know if I should do it from /home/pi or from inside /home/pi/MagicMirror ?

                                  pi@raspberrypi:~ Here!

                                  Create a working config
                                  How to add modules

                                  1 Reply Last reply Reply Quote 1
                                  • B Offline
                                    bibi
                                    last edited by

                                    finally what i did and what did work is :)

                                    sudo apt-get remove nodered -y
                                    sudo apt-get remove nodejs nodejs-legacy -y
                                    sudo apt-get remove npm -y
                                    sudo curl -sL https://deb.nodesource.com/setup_6.x | sudo bash -
                                    sudo apt-get install -y nodejs
                                    node -v
                                    npm -v
                                    
                                    1 Reply Last reply Reply Quote 0
                                    • B Offline
                                      bibi
                                      last edited by bibi

                                      Hi @ejay-ibm, was a bit busy last days… couldn’t work on MM. I finally install both MMM-Hotword and Mk2. Works fine but need some fine tuning. Maybe you or anybody can guide/help me on the following:

                                      Mk2 side, i still need to understand how it works and how i can “interact” with the other modules… If you have a simple example to show how to “link” Mk2 with any other modules, it would be very helpful!
                                      As usual thx to all for always supporting the community!

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