TypeError: whisper is not a function
Closed this issue · 4 comments
changyongyong commented
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)
`
deflexable commented
@changyongyong also having this issue, were you able to fix it?
deflexable commented
fixed by changing
import whisper from 'whisper-node';
to
import { whisper } from 'whisper-node';
Juanestban commented
that error can be solved on this pr #20
ariym commented
whisper is now the default export so this should work