Skip to content

Commit 0177dd1

Browse files
committed
fix: update command construction to use quotes for file path
1 parent 3c38e16 commit 0177dd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WhisperHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const constructCommand = (filePath: string, args: IOptions): string => {
2727
}
2828

2929
const modelName = MODEL_OBJECT[args.modelName as keyof typeof MODEL_OBJECT]
30-
let command = `./main ${constructOptionsFlags(args)} -l ${args.whisperOptions?.language ? args.whisperOptions?.language : 'auto'} -m ./models/${modelName} -f ${filePath}`
30+
let command = `./main ${constructOptionsFlags(args)} -l ${args.whisperOptions?.language ? args.whisperOptions?.language : 'auto'} -m "./models/${modelName}" -f "${filePath}"`
3131

3232
return command
3333
}

0 commit comments

Comments
 (0)