🪻 distributed transcription service thistle.dunkirk.sh
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: add a finalizing state

+24
+24
src/lib/transcription.ts
··· 13 13 | "uploading" 14 14 | "processing" 15 15 | "transcribing" 16 + | "finalizing" 16 17 | "completed" 17 18 | "failed"; 18 19 ··· 287 288 transcript: transcript || undefined, 288 289 }); 289 290 } else if (update.status === "completed") { 291 + // Set to finalizing state while we fetch and process the VTT 292 + this.updateTranscription(transcriptionId, { 293 + status: "finalizing", 294 + progress: 100, 295 + }); 296 + 297 + this.events.emit(transcriptionId, { 298 + status: "finalizing", 299 + progress: 100, 300 + }); 301 + 290 302 // Fetch and save VTT file from Murmur 291 303 const whisperJobId = this.db 292 304 .query<{ whisper_job_id: string }, [string]>( ··· 535 547 ); 536 548 } 537 549 550 + // Set to finalizing state while we process 551 + this.updateTranscription(transcriptionId, { 552 + status: "finalizing", 553 + progress: 100, 554 + }); 555 + 556 + this.events.emit(transcriptionId, { 557 + status: "finalizing", 558 + progress: 100, 559 + }); 560 + 561 + // Then immediately mark as completed 538 562 this.updateTranscription(transcriptionId, { 539 563 status: "completed", 540 564 progress: 100,