Skip to content

🎥 Make videos programmatically with React

510 B
Raw Blame
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};