Nikro / MMM-WhisperGPT

A Whisper + ChatGPT MagicMirror Module.
https://nikro.me/articles/professional/crafting-our-ai-assistant/
MIT License
31 stars 1 forks source link

Porcupine Issue: While attempting to run WhisperGPT with Magic Mirror, we get an error #5

Open Sufian0 opened 9 months ago

Sufian0 commented 9 months ago

Make sure you have read the documentation, and have put forth a reasonable effort to find an existing answer.

Expected behaviour Importing Picovoice should not fail.

Actual behaviour Picovoice loading fail.

we get this error: [12.12.2023 11:06.30.621] [ERROR] (node:30020) UnhandledPromiseRejectionWarning: Error: A dynamic link library (DLL) initialization routine failed. \?\D:\Libraries\Documents\1ACode\MagicMirror\modules\MMM-WhisperGPT\node_modules@picovoice\pvrecorder-node\lib\windows\amd64\pv_recorder.node at process.func [as dlopen] (node:electron/js2c/asar_bundle:2:2131) at Object. (node:internal/modules/cjs/loader:1356:18) at Object.func [as .node] (node:electron/js2c/asar_bundle:2:2131) at Module.load (node:internal/modules/cjs/loader:1126:32) at node:internal/modules/cjs/loader:967:12 at Function._load (node:electron/js2c/asar_bundle:2:13327) at Module.require (node:internal/modules/cjs/loader:1150:19) at require (node:internal/modules/cjs/helpers:121:18) at Object..js (node:internal/modules/cjs/loader:1326:10) at Module.load (node:internal/modules/cjs/loader:1126:32) at node:internal/modules/cjs/loader:967:12 at Function._load (node:electron/js2c/asar_bundle:2:13327) at Module.require (node:internal/modules/cjs/loader:1150:19) (Use electron --trace-warnings ... to show where the warning was created) [12.12.2023 11:06.30.622] [ERROR] (node:30020) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)

Steps to reproduce the behaviour the error occurs here: const { PvRecorder } = require("@picovoice/pvrecorder-node");

commenting this line out will get past the error, but we need that module to make it work properly.

NOTE: I did not change any of the code other than adding my URLs and API keys. (Include enough details so that the issue can be reproduced independently.)