ariym/whisper-node

TypeError: whisper is not a function

Closed this issue · 4 comments

I run my code, but it has a error
this is error
`
const transcript = await whisper(filePath, options);
^

TypeError: whisper is not a function
at file:///Users/xx/test/test1.js:17:26
at ModuleJob.run (node:internal/modules/esm/module_job:192:25)
`

@changyongyong also having this issue, were you able to fix it?

fixed by changing

import whisper from 'whisper-node';

to

import { whisper } from 'whisper-node';

that error can be solved on this pr #20

ariym commented

whisper is now the default export so this should work