Skip to content

🎥 Make videos programmatically with React

render cards and link module in example

Jonny Burger2790e94b05c7
diff --git a/packages/docs/docs/whisper-wasm/download-whisper-model.mdx b/packages/docs/docs/whisper-wasm/download-whisper-model.mdx
index 59947949ff..8815a2e96b 100644
--- a/packages/docs/docs/whisper-wasm/download-whisper-model.mdx
+++ b/packages/docs/docs/whisper-wasm/download-whisper-model.mdx
@@ -1,4 +1,5 @@
---
+image: /generated/articles-docs-whisper-wasm-download-whisper-model.png
title: downloadWhisperModel()
crumb: '@remotion/whisper-wasm'
---
diff --git a/packages/docs/docs/whisper-wasm/index.mdx b/packages/docs/docs/whisper-wasm/index.mdx
index 4a9e8bb669..a8350436b0 100644
--- a/packages/docs/docs/whisper-wasm/index.mdx
+++ b/packages/docs/docs/whisper-wasm/index.mdx
@@ -1,10 +1,9 @@
---
+image: /generated/articles-docs-whisper-wasm-index.png
title: '@remotion/whisper-wasm'
crumb: 'Transcribe audio in browser'
---
-<!-- _Available from v4.0.115_ -->
-
Similar to [@remotion/install-whisper-cpp](/docs/install-whisper-cpp) but for the browser. Allows you to transcribe audio locally in the browser, with the help of WASM.
import {TableOfContents} from './whisper-wasm';
diff --git a/packages/docs/docs/whisper-wasm/transcribe.mdx b/packages/docs/docs/whisper-wasm/transcribe.mdx
index 4e0f19701c..74ea05c8b9 100644
--- a/packages/docs/docs/whisper-wasm/transcribe.mdx
+++ b/packages/docs/docs/whisper-wasm/transcribe.mdx
@@ -1,4 +1,5 @@
---
+image: /generated/articles-docs-whisper-wasm-transcribe.png
title: transcribe()
crumb: '@remotion/whisper-wasm'
---
diff --git a/packages/docs/src/data/articles.ts b/packages/docs/src/data/articles.ts
index 0dd7430573..d922528a43 100644
--- a/packages/docs/src/data/articles.ts
+++ b/packages/docs/src/data/articles.ts
@@ -5892,6 +5892,33 @@ export const articles = [
noAi: false,
slug: 'webcodecs/webcodecs-controller',
},
+ {
+ id: 'whisper-wasm/download-whisper-model',
+ title: 'downloadWhisperModel()',
+ relativePath: 'docs/whisper-wasm/download-whisper-model.mdx',
+ compId: 'articles-docs-whisper-wasm-download-whisper-model',
+ crumb: '@remotion/whisper-wasm',
+ noAi: false,
+ slug: 'whisper-wasm/download-whisper-model',
+ },
+ {
+ id: 'whisper-wasm/index',
+ title: '@remotion/whisper-wasm',
+ relativePath: 'docs/whisper-wasm/index.mdx',
+ compId: 'articles-docs-whisper-wasm-index',
+ crumb: 'Transcribe audio in browser',
+ noAi: false,
+ slug: 'whisper-wasm/index',
+ },
+ {
+ id: 'whisper-wasm/transcribe',
+ title: 'transcribe()',
+ relativePath: 'docs/whisper-wasm/transcribe.mdx',
+ compId: 'articles-docs-whisper-wasm-transcribe',
+ crumb: '@remotion/whisper-wasm',
+ noAi: false,
+ slug: 'whisper-wasm/transcribe',
+ },
{
id: 'wrong-composition-mount',
title: 'Wrongly mounted <Composition>',
diff --git a/packages/docs/static/generated/articles-docs-whisper-wasm-download-whisper-model.png b/packages/docs/static/generated/articles-docs-whisper-wasm-download-whisper-model.png
new file mode 100644
index 0000000000..ddd64bcd85
Binary files /dev/null and b/packages/docs/static/generated/articles-docs-whisper-wasm-download-whisper-model.png differ
diff --git a/packages/docs/static/generated/articles-docs-whisper-wasm-index.png b/packages/docs/static/generated/articles-docs-whisper-wasm-index.png
new file mode 100644
index 0000000000..79303196b7
Binary files /dev/null and b/packages/docs/static/generated/articles-docs-whisper-wasm-index.png differ
diff --git a/packages/docs/static/generated/articles-docs-whisper-wasm-transcribe.png b/packages/docs/static/generated/articles-docs-whisper-wasm-transcribe.png
new file mode 100644
index 0000000000..0c236dd4c8
Binary files /dev/null and b/packages/docs/static/generated/articles-docs-whisper-wasm-transcribe.png differ
diff --git a/packages/example/src/Root.tsx b/packages/example/src/Root.tsx
index eb036a4fa6..c1a2276fe4 100644
--- a/packages/example/src/Root.tsx
+++ b/packages/example/src/Root.tsx
@@ -85,6 +85,7 @@ import {
} from './StudioApis/SaveDefaultProps';
import {TriggerCalculateMetadata} from './StudioApis/TriggerCalculateMetadata';
import {WriteStaticFile} from './StudioApis/WriteStaticFile';
+import './style.css';
import {SubtitleArtifact} from './SubtitleArtifact/SubtitleArtifact';
import {SvgFilter} from './SvgFilter';
import {Tailwind} from './Tailwind';
@@ -105,7 +106,6 @@ import {VideoSpeed} from './VideoSpeed';
import {VideoTesting} from './VideoTesting';
import {WarpDemoOuter} from './WarpText';
import {WarpDemo2} from './WarpText/demo2';
-import './style.css';
import {WatchStaticDemo} from './watch-static';
if (alias !== 'alias') {
@@ -131,6 +131,7 @@ import {SmoothTextTransition} from './SmoothTextTransition';
import {Seek} from './StudioApis/Seek';
import {TransitionRounding} from './TransitionRounding';
import {VoiceVisualization} from './voice-visualization';
+import {WhisperWasm} from './WhisperWasm';
class Vector2 {
readonly x: number;
@@ -1570,9 +1571,9 @@ export const Index: React.FC = () => {
</Folder>
<Composition
id="whisper-wasm"
- component={Empty}
- width={1080}
- height={1080}
+ component={WhisperWasm}
+ width={150}
+ height={150}
fps={30}
durationInFrames={900}
/>
diff --git a/packages/example/tsconfig.json b/packages/example/tsconfig.json
index db2e2962ef..38b9f477a3 100644
--- a/packages/example/tsconfig.json
+++ b/packages/example/tsconfig.json
@@ -38,6 +38,7 @@
{"path": "../svg-3d-engine"},
{"path": "../media-parser"},
{"path": "../webcodecs"},
+ {"path": "../whisper-wasm"},
{"path": "../layout-utils"}
]
}