MCPcopy
hub / github.com/CapSoftware/Cap / queueTranscriptionRegeneration

Function queueTranscriptionRegeneration

apps/web/workflows/edit-video.ts:497–520  ·  view source on GitHub ↗
(
	videoId: string,
	userId: string,
	aiGenerationEnabled: boolean,
)

Source from the content-addressed store, hash-verified

495}
496
497async function queueTranscriptionRegeneration(
498 videoId: string,
499 userId: string,
500 aiGenerationEnabled: boolean,
501): Promise<void> {
502 "use step";
503
504 try {
505 const result = await transcribeVideo(
506 videoId as Video.VideoId,
507 userId,
508 aiGenerationEnabled,
509 );
510
511 if (!result.success) {
512 console.warn("[editVideoWorkflow] Failed to queue transcription", {
513 videoId,
514 message: result.message,
515 });
516 }
517 } catch (error) {
518 console.warn("[editVideoWorkflow] Failed to queue transcription", error);
519 }
520}
521
522async function clearTranscriptObjects(video: typeof videos.$inferSelect) {
523 const [bucket] = await Storage.getAccessForVideo(

Callers 1

editVideoWorkflowFunction · 0.85

Calls 1

transcribeVideoFunction · 0.90

Tested by

no test coverage detected