🎥 Make videos programmatically with React
import type {Caption} from '@remotion/captions';
import type {
WhisperModelDownloadProgress,
WhisperWebGpuTranscription,
} from '@remotion/whisper-webgpu';
export type TranscriptionState =
| {
type: 'idle';
}
| {
type: 'initializing';
}
| {
type: 'downloading-model';
progress: WhisperModelDownloadProgress;
}
| {
type: 'transcribing';
}
| {
type: 'done';
result: Caption[];
whisperWebGpuOutput: WhisperWebGpuTranscription;
}
| {type: 'error'; message: string};