Skip to content

Commit 9193dbb

Browse files
authored
Merge pull request #80 from ChetanXpro/fix/disable-default-removing-wav-file
fix: disable default removing WAV files after transcription
2 parents 4ac4243 + 1cd25ed commit 9193dbb

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nodejs-whisper",
3-
"version": "0.1.13",
3+
"version": "0.1.15",
44
"description": "Node bindings for OpenAI's Whisper. Optimized for CPU.",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,16 @@ export interface IOptions {
1616

1717
export async function nodewhisper(filePath: string, options: IOptions) {
1818
try {
19-
const { verbose = false, removeWavFileAfterTranscription = true } = options
19+
const { verbose = false, removeWavFileAfterTranscription = false } = options
2020

2121
if (options.autoDownloadModelName) {
2222
if (verbose)
2323
console.log(
2424
`[Nodejs-whisper] Checking and downloading model if needed: ${options.autoDownloadModelName}`
2525
)
26+
console.log('autoDownloadModelName', options.autoDownloadModelName)
27+
console.log('options', options)
28+
2629
await autoDownloadModel(options.autoDownloadModelName, verbose, options.withCuda)
2730
}
2831

0 commit comments

Comments
 (0)