nodejs-whisper
Advanced tools
Comparing version 0.1.16 to 0.1.17
@@ -7,2 +7,3 @@ export interface WhisperOptions { | ||
translateToEnglish?: boolean; | ||
language?: string; | ||
timestamps_length?: number; | ||
@@ -9,0 +10,0 @@ wordTimestamps?: boolean; |
@@ -11,2 +11,3 @@ "use strict"; | ||
const constructCommand = (filePath, args) => { | ||
var _a, _b; | ||
let errors = []; | ||
@@ -27,3 +28,3 @@ if (!args.modelName) { | ||
const modelName = constants_1.MODEL_OBJECT[args.modelName]; | ||
let command = `./main ${constructOptionsFlags(args)} -l auto -m ./models/${modelName} -f ${filePath}`; | ||
let command = `./main ${constructOptionsFlags(args)} -l ${((_a = args.whisperOptions) === null || _a === void 0 ? void 0 : _a.language) ? (_b = args.whisperOptions) === null || _b === void 0 ? void 0 : _b.language : "auto"} -m ./models/${modelName} -f ${filePath}`; | ||
return command; | ||
@@ -30,0 +31,0 @@ }; |
{ | ||
"name": "nodejs-whisper", | ||
"version": "0.1.16", | ||
"version": "0.1.17", | ||
"description": "Node bindings for OpenAI's Whisper. Optimized for CPU.", | ||
@@ -23,3 +23,4 @@ "main": "dist/index.js", | ||
"build": "tsc && chmod +x dist/downloadModel.js", | ||
"format": "prettier --write src/**/*.ts" | ||
"format": "prettier --write src/**/*.ts", | ||
"publish":"npm run build; npm publish" | ||
}, | ||
@@ -26,0 +27,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9887686
6559