Skip to content

🎥 Make videos programmatically with React

use the function previously useless

Hunain Ahmed5424debb70d4
diff --git a/packages/docs/docs/whisper-wasm/index.mdx b/packages/docs/docs/whisper-wasm/index.mdx
index a8350436b0..4a0ccd32e3 100644
--- a/packages/docs/docs/whisper-wasm/index.mdx
+++ b/packages/docs/docs/whisper-wasm/index.mdx
@@ -26,7 +26,7 @@ export default function Home() {
}, []);
const onTranscribeChunk = (start: string, end: string, text: string) => {
- // do something
+ console.log(`transcribed ${text} for time ${start} to ${end}`)
};
return (
@@ -39,6 +39,7 @@ export default function Home() {
transcribe({
file: e.target.files[0],
onProgress: setTranscriptionProgress,
+ onTranscribeChunk
}).then((result) => console.log(result))
}
/>