@remotion/openai-whisper 4.0.355 → 4.0.357

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.
@@ -20,7 +20,7 @@ const openAiWhisperApiToCaptions = ({ transcription, }) => {
20
20
  const punctuation = `\\?,\\.\\%\\–\\!\\;\\:\\'\\"\\-\\_\\(\\)\\[\\]\\{\\}\\@\\#\\$\\^\\&\\*\\+\\=\\/\\|\\<\\>\\~\``;
21
21
  const match = new RegExp(`^([\\s?${punctuation}]{0,4})${word.word.replace(new RegExp(`^[${punctuation}]+`), '').replace(/[.*+?^${}()|[\]\\]/g, '\\$&')}([${punctuation}]{0,3})?`).exec(remainingText);
22
22
  if (!match) {
23
- throw new Error(`Unable to parse punctuation from OpenAI Whisper output. Could not find word "${word.word}" in text "${remainingText.slice(0, 100)}". File an issue under https://remotion.dev/issue to ask for a fix.`);
23
+ throw new Error(`Unable to parse punctuation from OpenAI Whisper output. Could not find word "${word.word}" in text "${remainingText.slice(0, 100)}". File an issue under https://remotion.dev/issue and post the input for openAiWhisperApiToCaptions() to ask for a fix.`);
24
24
  }
25
25
  const foundText = match[0];
26
26
  remainingText = remainingText.slice(foundText.length);
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.355",
6
+ "version": "4.0.357",
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.355"
19
+ "@remotion/captions": "4.0.357"
20
20
  },
21
21
  "peerDependencies": {},
22
22
  "devDependencies": {
23
23
  "openai": "4.67.1",
24
24
  "eslint": "9.19.0",
25
- "@remotion/eslint-config-internal": "4.0.355"
25
+ "@remotion/eslint-config-internal": "4.0.357"
26
26
  },
27
27
  "keywords": [
28
28
  "remotion"