@remotion/whisper-webgpu 4.0.537 → 4.0.539

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,8 +22,8 @@ export type LoadWhisperModelResult = AsyncDisposable & {
22
22
  };
23
23
  export declare const loadWhisperModel: ({ model, onProgress, signal, }: LoadWhisperModelOptions) => Promise<LoadWhisperModelResult>;
24
24
  export declare const withLoadedWhisperPipeline: <ReturnValue>({ model, onProgress, signal, run, }: {
25
- model: "base" | "base.en" | "large-v3-turbo" | "medium" | "medium.en" | "small" | "small.en" | "tiny" | "tiny.en";
26
- onProgress?: OnWhisperWebGpuModelLoadProgress | undefined;
25
+ model: WhisperWebGpuModel;
26
+ onProgress?: OnWhisperWebGpuModelLoadProgress;
27
27
  signal: AbortSignal | null;
28
28
  run: (pipeline: LoadedWhisperPipeline) => Promise<ReturnValue>;
29
29
  }) => Promise<ReturnValue>;
package/dist/models.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const WHISPER_WEBGPU_MODELS: readonly ["tiny", "tiny.en", "base", "base.en", "small", "small.en", "medium", "medium.en", "large-v3-turbo"];
1
+ export declare const WHISPER_WEBGPU_MODELS: readonly ['tiny', 'tiny.en', 'base', 'base.en', 'small', 'small.en', 'medium', 'medium.en', 'large-v3-turbo'];
2
2
  export type WhisperWebGpuModel = (typeof WHISPER_WEBGPU_MODELS)[number];
3
3
  export type WhisperWebGpuModelInfo = {
4
4
  name: WhisperWebGpuModel;
@@ -9,12 +9,12 @@ export type WhisperWebGpuModelInfo = {
9
9
  webGpuDownloadSize: number;
10
10
  };
11
11
  export declare const getAvailableModels: () => WhisperWebGpuModelInfo[];
12
- export declare const getModelInfo: (model: "base" | "base.en" | "large-v3-turbo" | "medium" | "medium.en" | "small" | "small.en" | "tiny" | "tiny.en") => WhisperWebGpuModelInfo;
13
- export declare const getHostedModelId: (model: "base" | "base.en" | "large-v3-turbo" | "medium" | "medium.en" | "small" | "small.en" | "tiny" | "tiny.en") => string;
14
- export declare const getWhisperWebGpuDtype: (model: "base" | "base.en" | "large-v3-turbo" | "medium" | "medium.en" | "small" | "small.en" | "tiny" | "tiny.en") => {
15
- readonly encoder_model: "fp32";
16
- readonly decoder_model_merged: "q4";
12
+ export declare const getModelInfo: (model: WhisperWebGpuModel) => WhisperWebGpuModelInfo;
13
+ export declare const getHostedModelId: (model: WhisperWebGpuModel) => string;
14
+ export declare const getWhisperWebGpuDtype: (model: WhisperWebGpuModel) => {
15
+ readonly encoder_model: 'fp32';
16
+ readonly decoder_model_merged: 'q4';
17
17
  } | {
18
- readonly encoder_model: "fp16";
19
- readonly decoder_model_merged: "q4";
18
+ readonly encoder_model: 'fp16';
19
+ readonly decoder_model_merged: 'q4';
20
20
  };
@@ -3,4 +3,4 @@ export type ResampleTo16KhzOptions = {
3
3
  file: Blob;
4
4
  onProgress?: (progress: number) => void;
5
5
  };
6
- export declare const resampleTo16Khz: ({ file, onProgress, }: ResampleTo16KhzOptions) => Promise<Float32Array<ArrayBufferLike>>;
6
+ export declare const resampleTo16Khz: ({ file, onProgress, }: ResampleTo16KhzOptions) => Promise<Float32Array>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/whisper-webgpu",
3
- "version": "4.0.537",
3
+ "version": "4.0.539",
4
4
  "description": "Transcribe audio in the browser using Whisper and WebGPU",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -14,8 +14,8 @@
14
14
  "formatting": "oxfmt src --check",
15
15
  "format": "oxfmt src",
16
16
  "lint": "eslint src",
17
- "watch": "tsgo -w",
18
- "make": "tsgo && bun --env-file=../.env.bundle bundle.ts"
17
+ "watch": "tsc -w",
18
+ "make": "tsc && bun --env-file=../.env.bundle bundle.ts"
19
19
  },
20
20
  "author": "Jonny Burger <jonny@remotion.dev>",
21
21
  "contributors": [],
@@ -24,7 +24,7 @@
24
24
  "url": "https://github.com/remotion-dev/remotion/issues"
25
25
  },
26
26
  "dependencies": {
27
- "@remotion/captions": "4.0.537",
27
+ "@remotion/captions": "4.0.539",
28
28
  "onnxruntime-node": "1.24.3"
29
29
  },
30
30
  "peerDependencies": {
@@ -40,8 +40,8 @@
40
40
  },
41
41
  "devDependencies": {
42
42
  "@huggingface/transformers": "4.2.0",
43
- "@remotion/eslint-config-internal": "4.0.537",
44
- "@typescript/native-preview": "7.0.0-dev.20260217.1",
43
+ "@remotion/eslint-config-internal": "4.0.539",
44
+ "typescript": "7.1.0-beta",
45
45
  "eslint": "9.19.0"
46
46
  },
47
47
  "keywords": [