@remotion/install-whisper-cpp 4.0.243 → 4.0.245
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.
package/LICENSE.md
CHANGED
|
@@ -3,11 +3,6 @@ export type ConvertToCaptionCaption = {
|
|
|
3
3
|
text: string;
|
|
4
4
|
startInSeconds: number;
|
|
5
5
|
};
|
|
6
|
-
/**
|
|
7
|
-
*
|
|
8
|
-
* @deprecated Use the `toCaptions()` function from `@remotion/install-whisper-cpp` instead
|
|
9
|
-
* and then process the captions using `createTikTokStyleCaptions()` from `@remotion/captions`.
|
|
10
|
-
*/
|
|
11
6
|
export declare function convertToCaptions({ transcription, combineTokensWithinMilliseconds, }: {
|
|
12
7
|
transcription: TranscriptionJson<true>['transcription'];
|
|
13
8
|
combineTokensWithinMilliseconds: number;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.convertToCaptions = convertToCaptions;
|
|
4
|
-
|
|
5
|
-
*
|
|
6
|
-
* @
|
|
7
|
-
* and then process the captions using `createTikTokStyleCaptions()` from `@remotion/captions`.
|
|
4
|
+
/*
|
|
5
|
+
* @description Converts the JSON transcription data into captions with start times based on the defined millisecond threshold.
|
|
6
|
+
* @see [Documentation](https://remotion.dev/docs/install-whisper-cpp/convert-to-captions)
|
|
8
7
|
*/
|
|
9
8
|
function convertToCaptions({ transcription, combineTokensWithinMilliseconds, }) {
|
|
10
9
|
const merged = [];
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/install-whisper-cpp"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/install-whisper-cpp",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.245",
|
|
7
7
|
"description": "Helpers for installing and using Whisper.cpp",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"sideEffects": false,
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
"author": "Jonny Burger <jonny@remotion.dev>",
|
|
17
17
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@remotion/captions": "4.0.
|
|
19
|
+
"@remotion/captions": "4.0.245"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"eslint": "9.14.0",
|
|
24
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
24
|
+
"@remotion/eslint-config-internal": "4.0.245"
|
|
25
25
|
},
|
|
26
26
|
"keywords": [
|
|
27
27
|
"remotion",
|