-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a way to use this with a regular .js file rather than this 'import' typescript style #40
Comments
I ran the command, Then when running the code from the original post I get this:
This is based on code in my original post. Any suggestions would be well appreciated, I'm trying to run this from a normal node js file with the normal, I'm on the old iMac intel 3.4 GHz Quad-Core Intel Core i5, that might be why |
I'm trying to use this package in the same way and I'm facing a similar issue:
Have you had any luck with this @lando2319? |
My issue was caused by not following the instructions in the ReadMe. After converting my audio file to the correct format using |
I'm on nodejs 20. I don't want to use typescript, but I do want to use whisper-node in javascript
the import statement of
import whisper from 'whisper-node';
returns Cannot use import statement outside of a module when I add it to my .js file.is there a way to just simply declare this dependency at the top with a simple require statement like I do for all my other modules, that way I'm not declaring every function.
What do you suggest, I'd love to start using this
I'd love to be able to just simple add the dependency statement at the top and do my thing, create functions and call the functions of the dependency. Is that possible?
I'm looking to do something like this
The text was updated successfully, but these errors were encountered: