@remotion/openai-whisper 4.0.249 → 4.0.251
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/dist/openai-format.d.ts
CHANGED
|
@@ -4,6 +4,9 @@ exports.openAiWhisperApiToCaptions = void 0;
|
|
|
4
4
|
const openAiWhisperApiToCaptions = ({ transcription, }) => {
|
|
5
5
|
const captions = [];
|
|
6
6
|
if (!transcription.words) {
|
|
7
|
+
if (transcription.task && transcription.task !== 'transcribe') {
|
|
8
|
+
throw new Error(`The transcription does need to be a "transcribe" task. The input you gave is "task": "${transcription.task}"`);
|
|
9
|
+
}
|
|
7
10
|
throw new Error('The transcription does need to be been generated with `timestamp_granularities: ["word"]`');
|
|
8
11
|
}
|
|
9
12
|
let remainingText = transcription.text;
|
package/dist/test/output.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/openai-whisper"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/openai-whisper",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.251",
|
|
7
7
|
"description": "Work with the output of the OpenAI Whisper API",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"sideEffects": false,
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
"author": "Jonny Burger <jonny@remotion.dev>",
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@remotion/captions": "4.0.
|
|
19
|
+
"@remotion/captions": "4.0.251"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"openai": "4.67.1",
|
|
24
24
|
"eslint": "9.14.0",
|
|
25
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
25
|
+
"@remotion/eslint-config-internal": "4.0.251"
|
|
26
26
|
},
|
|
27
27
|
"keywords": [
|
|
28
28
|
"remotion"
|