New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nodejs-whisper

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodejs-whisper - npm Package Compare versions

Comparing version 0.1.8 to 0.1.9

11

dist/index.js

@@ -22,14 +22,15 @@ "use strict";

return __awaiter(this, void 0, void 0, function* () {
const { verbose = false } = options;
if (options.autoDownloadModelName) {
yield (0, autoDownloadModel_1.default)(options.autoDownloadModelName, options.verbose);
yield (0, autoDownloadModel_1.default)(options.autoDownloadModelName, verbose);
}
(0, utils_1.checkIfFileExists)(filePath);
const outputFilePath = yield (0, utils_1.convertToWavType)(filePath, options.verbose);
const outputFilePath = yield (0, utils_1.convertToWavType)(filePath, verbose);
(0, utils_1.checkIfFileExists)(outputFilePath);
const command = (0, WhisperHelper_1.constructCommand)(outputFilePath, options);
if (options.verbose) {
if (verbose) {
console.log(`[Nodejs-whisper] Executing command: ${command}\n`);
}
const transcript = yield (0, whisper_1.executeCppCommand)(command, options.verbose);
if (transcript.length === 0) {
const transcript = yield (0, whisper_1.executeCppCommand)(command, verbose);
if (!transcript) {
throw new Error('Something went wrong while executing the command.');

@@ -36,0 +37,0 @@ }

{
"name": "nodejs-whisper",
"version": "0.1.8",
"version": "0.1.9",
"description": "Node bindings for OpenAI's Whisper. Optimized for CPU.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc