Skip to content

whisper-node sets rootDir to node_modules package when importing it #48

Description

@YozoraWolf

I have made the same issue in the ts version one . But thought I might as well leave it here for future reference.

Basically same issue as listed in the issue linked above.

Without loading the file with import whisper from 'whisper-node':

[INFO] Root directory: /home/wolf/develop/nodejs/okuuai/node_modules/whisper-node/lib/whisper.cpp // using process.cwd()
[INFO] Root directory path: /home/wolf/develop/nodejs/okuuai/src // using path

Without loading it:

[INFO] Root directory: /home/wolf/develop/nodejs/okuuai
[INFO] Root directory path: /home/wolf/develop/nodejs/okuuai/src

It would be great to have some help on this, please.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions