From 3c99b4aa986eca0108d5d595d93082650c25a84a Mon Sep 17 00:00:00 2001 From: RohitTalwalkar Date: Sun, 6 Oct 2024 14:14:05 -0500 Subject: [PATCH] Update README.md Fix import since whisper is a named object. Fix `options` typo with missing command after `language` --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f82c0ff..9921e54 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ console.log(transcript); // output: [ {start,end,speech} ] ### Full Options List ```javascript -import whisper from 'whisper-node'; +import { whisper } from 'whisper-node'; const filePath = "example/sample.wav"; // required @@ -60,7 +60,7 @@ const options = { modelName: "base.en", // default // modelPath: "/custom/path/to/model.bin", // use model in a custom directory (cannot use along with 'modelName') whisperOptions: { - language: 'auto' // default (use 'auto' for auto detect) + language: 'auto', // default (use 'auto' for auto detect) gen_file_txt: false, // outputs .txt file gen_file_subtitle: false, // outputs .srt file gen_file_vtt: false, // outputs .vtt file