Skip to content

Commit

Permalink
πŸš€ chore(package.json): bump version to 1.0.21
Browse files Browse the repository at this point in the history
πŸ› fix(whisper.ts): set defaultParams n_threads and n_processors to 0
  • Loading branch information
Durgaprasad-Budhwani committed Jul 25, 2023
1 parent 4a21169 commit c0c6f90
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tech9app/whisper.js",
"version": "1.0.20",
"version": "1.0.21",
"main": "dist/index.js",
"repository": "[email protected]:Tech9Apps/whisper.js.git",
"author": "Durgaprasad-Budhwani <[email protected]>",
Expand Down
7 changes: 2 additions & 5 deletions src/whisper.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
import path from "path";
import {SpeechData, WhisperParams} from "./types";
import {getSpeechData} from "./speech";
import * as os from "os";
const { whisper: whisperNative } = require(path.join(
__dirname,
"../build/Release/whisper-addon"
));

const systemCpuCores = os.cpus();

const defaultParams = {
n_threads: systemCpuCores?.length ?? 1,
n_processors: systemCpuCores?.length ?? 1,
n_threads: 0,
n_processors: 0,
offset_t_ms: 0,
offset_n: 0,
duration_ms: 0,
Expand Down

0 comments on commit c0c6f90

Please sign in to comment.