Skip to content

Commit

Permalink
@remotion/install-whisper-cpp: Fix DTW timestamp of large-v3-turbo
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyBurger committed Nov 11, 2024
1 parent 20d158f commit e0b3733
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/docs/docs/install-whisper-cpp/transcribe.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ Possible values: `tiny`, `tiny.en`, `base`, `base.en`, `small`, `small.en`, `med

Make sure the model you want to use exists in your `whisper.cpp/models` folder. You can ensure a specific model is available locally by utilizing the [downloadWhisperModel()](/docs/install-whisper-cpp/download-whisper-model) API.

Note: `large-v3-turbo` is only working properly from Whisper.cpp versions built from November 2024 or later and Remotion v4.0.229 or greater.

### `modelFolder?`

_default: whisperPath/models_
Expand Down
6 changes: 5 additions & 1 deletion packages/install-whisper-cpp/src/transcribe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@ export type TranscribeOnProgress = (progress: number) => void;
// https://github.com/ggerganov/whisper.cpp/blob/fe36c909715e6751277ddb020e7892c7670b61d4/examples/main/main.cpp#L989-L999
// https://github.com/remotion-dev/remotion/issues/4168
export const modelToDtw = (model: WhisperModel): string => {
if (model === 'large-v3' || model === 'large-v3-turbo') {
if (model === 'large-v3-turbo') {
return 'large.v3.turbo';
}

if (model === 'large-v3') {
return 'large.v3';
}

Expand Down

0 comments on commit e0b3733

Please sign in to comment.