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.

    problems with hot word

    Scheduled Pinned Locked Moved Troubleshooting
    6 Posts 5 Posters 413 Views 5 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.
    • K Offline
      Karalica-Kir
      last edited by

      [2021-03-26 09:53:46.150] [LOG] [HOTWORD] begins.
      [2021-03-26 09:53:46.524] [LOG] [HOTWORD] Detector starts listening.
      [2021-03-26 09:53:49.333] [LOG] [HOTWORD:LPCM16] arecord: main:828: audio open error: No such file or folder
      [2021-03-26 09:53:49.838] [LOG] [HOTWORD] Final Result: { detected: false }

      I can’t find this module on GitHub and reinstall it correctly

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

        @karalica-kir said in problems with hot word:

        HOTWORD

        I dont know the module by there is a module with the same name on GitHub:

        https://github.com/lixiljp/MMM-Hotword

        K 1 Reply Last reply Reply Quote 0
        • K Offline
          Karalica-Kir @BravoOscar
          last edited by

          @bravooscar i can’t understand what’s wrong

          pi@Pi:~/MagicMirror/modules $ cd MMM-Hotword
          pi@Pi:~/MagicMirror/modules/MMM-Hotword $ npm install
          npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
          npm WARN deprecated hawk@3.1.3: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
          npm WARN deprecated har-validator@5.1.5: this library is no longer supported
          npm WARN deprecated hoek@2.16.3: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
          npm WARN deprecated cryptiles@2.0.5: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
          npm WARN deprecated sntp@1.0.9: This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
          npm WARN deprecated boom@2.10.1: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
          
          > 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.24.0 (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.24.0 (node-v64 ABI, glibc) (falling back to source compile with node-gyp)
          internal/modules/cjs/loader.js:638
              throw err;
              ^
          
          Error: Cannot find module 'nan'
              at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
              at Function.Module._load (internal/modules/cjs/loader.js:562:25)
              at Module.require (internal/modules/cjs/loader.js:692:17)
              at require (internal/modules/cjs/helpers.js:25:18)
              at [eval]:1:1
              at Script.runInThisContext (vm.js:122:20)
              at Object.runInThisContext (vm.js:329:38)
              at Object.<anonymous> ([eval]-wrapper:6:22)
              at Module._compile (internal/modules/cjs/loader.js:778:30)
              at evalScript (internal/bootstrap/node.js:590:27)
          internal/modules/cjs/loader.js:638
              throw err;
              ^
          
          Error: Cannot find module 'nan'
              at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
              at Function.Module._load (internal/modules/cjs/loader.js:562:25)
              at Module.require (internal/modules/cjs/loader.js:692:17)
              at require (internal/modules/cjs/helpers.js:25:18)
              at [eval]:1:1
              at Script.runInThisContext (vm.js:122:20)
              at Object.runInThisContext (vm.js:329:38)
              at Object.<anonymous> ([eval]-wrapper:6:22)
              at Module._compile (internal/modules/cjs/loader.js:778:30)
              at evalScript (internal/bootstrap/node.js:590:27)
          gyp: Call to 'node -e "require('nan')"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
          gyp: Call to 'node -e "require('nan')"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
          gypgyp ERR! configure error
           ERR! gyp configure errorERR! 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:351:16)
          gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
          gyp
          ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
          gyp ERR! System Linux 5.10.17-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
          gypgyp ERR! node -v v10.24.0
          gyp ERR! node-gyp -v v5.1.0
          gyp  ERR! not ok
          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:351:16)
          gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
          gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
          gyp ERR! System Linux 5.10.17-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.24.0
          gyp ERR! node-gyp -v v5.1.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.<anonymous> (/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:198:13)
          node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:982:16)
          node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
          node-pre-gyp ERR! System Linux 5.10.17-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.24.0
          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.0.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.
          
          npm ERR! A complete log of this run can be found in:
          npm ERR!     /home/pi/.npm/_logs/2021-03-26T08_43_05_897Z-debug.log
          
          
          
          lavolp3L S 2 Replies Last reply Reply Quote 1
          • lavolp3L Offline
            lavolp3 Module Developer @Karalica-Kir
            last edited by

            @karalica-kir
            Some dependencies of this module are outdated.

            Snowball did not install. There is an instruction in the README on github. Have you had a look at that?

            When you fail to install snowboy itself.

            cd ~/MagicMirror/modules/MMM-Hotword
            npm install --save snowboy   # Sometimes it could fail, retry again.
            

            If you doubt errors are caused by different node.JS version, you can try to >compile it by yourself.

            cd ~/MagicMirror/modules/MMM-Hotword/node_modules/snowboy
            ./node_modules/node-pre-gyp/bin/node-pre-gyp clean configure build
            

            If there is no special errors(except some warnings), you can use it. test it with >serveronly mode.

            How to troubleshoot modules
            MMM-soccer v2, MMM-AVStock

            1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @Karalica-Kir
              last edited by

              @karalica-kir missing man

              npm install man
              then retry to install smowboy

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              bugsounetB 1 Reply Last reply Reply Quote 0
              • bugsounetB Offline
                bugsounet Banned @sdetweil
                last edited by

                @Karalica-Kir : I have deprecied this module, last year. I code another very more simple

                Now, I think you use a very old source (When i close MMM-Hotword it’s the v2.4.0… and you use v1)

                Good luck for using it ;)

                1 Reply Last reply Reply Quote 0
                • 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