diff --git a/README.md b/README.md index f82c0ff..ec78a4f 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,7 @@ const options = { gen_file_subtitle: false, // outputs .srt file gen_file_vtt: false, // outputs .vtt file word_timestamps: true // timestamp for every word + no_timestamps: true // return only text // timestamp_size: 0 // cannot use along with word_timestamps:true } } diff --git a/package-lock.json b/package-lock.json index 7b0ab73..74c8d77 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,18 +1,20 @@ { "name": "whisper-node", - "version": "0.2.0", + "version": "1.1.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "whisper-node", - "version": "0.2.0", - "hasInstallScript": true, + "version": "1.1.2", "license": "MIT", "dependencies": { "readline-sync": "^1.4.10", "shelljs": "^0.8.5" }, + "bin": { + "download": "dist/download.js" + }, "devDependencies": { "@types/node": "^18.11.13", "nodemon": "^2.0.20", diff --git a/src/whisper.ts b/src/whisper.ts index 8dfac53..6da9444 100644 --- a/src/whisper.ts +++ b/src/whisper.ts @@ -56,6 +56,7 @@ const getFlags = (flags: IFlagTypes): string => { if(flags.timestamp_size) s += " -ml " + String(flags.timestamp_size); // input language if(flags.language) s += " -l " + flags.language; + if(flags.no_timestamps) s += " -nt true "; return s; } @@ -90,5 +91,6 @@ export type IFlagTypes = { "gen_file_vtt"?: boolean, "timestamp_size"?: number, "word_timestamps"?: boolean, - "language"?: string + "language"?: string, + "no_timestamps"?: boolean, } \ No newline at end of file