Closed 29decibel closed 9 months ago
For now the temp workaround would be:
const originalDirectory = process.cwd();
await nodewhisper(filePath, {
modelName: "tiny", //Downloaded models name
autoDownloadModelName: "tiny", // (optional) autodownload a model if model is not present
whisperOptions: {
outputInText: false, // get output result in txt file
outputInVtt: false, // get output result in vtt file
outputInSrt: true, // get output result in srt file
outputInCsv: true, // get output result in csv file
translateToEnglish: false, //translate from source language to english
wordTimestamps: false, // Word-level timestamps
timestamps_length: 60, // amount of dialogue per timestamp pair
splitOnWord: true, //split on word rather than on token
},
});
process.chdir(originalDirectory);
@29decibel thanks for raising this , i got the issue , will fix this as soon as possible
Thanks for the project! It's very easy to integrate with NodeJS.
I encouter an issue though, where I found the current dir changed even after the
nodewhisper
call:Example code:
Expected: Showing results in the current dir where I executed the JS
What it shows:
Files under
node_modules/.pnpm/nodejs-whisper@0.1.4/node_modules/nodejs-whisper/cpp/whisper.cpp/