feat(video): add video transcripts (#559)

* feat(video): generate transcripts with the local embedding server

* feat(video): show saved transcripts in the player

* fix(video): preserve transcript seek timestamps

* fix(video): refine transcript viewing and generation

* feat(video): resize transcripts and follow playback earlier

* fix(video): animate transcript playback scrolling

* fix(video): transcribe from the smallest full proxy

* fix(video): refine the sync to playback button

* feat(video): edit transcript segment text inline

* fix(video): keep transcript segment highlighted over edit button

* docs(video): note embedding server version for transcripts
This commit is contained in:
Yiling-J
2026-12-04 13:49:25 +08:00
committed by GitHub
parent e420f03b35
commit d3899d1257
69 changed files with 7635 additions and 174 deletions
+30
View File
@@ -129,6 +129,7 @@ enum WorkflowTaskType {
ai_metadata_autofill
chat
ai_embedding
ai_transcription
query_embedding_for_search
agent_tool_call // @deprecated: Agent tools now execute directly in-process via Core services
kanban_agent_run
@@ -619,6 +620,7 @@ model Asset {
commentAttachments AssetCommentAttachment[] @relation("AssetToCommentAttachment")
notifications Notification[] @relation("AssetToNotification")
embeddings AssetEmbedding[] @relation("AssetToEmbedding")
transcripts AssetTranscript[]
teamRootFolder Team? @relation("TeamToRootFolder")
projectRootFolder Project? @relation("ProjectToRootFolder")
@@ -775,6 +777,34 @@ model AssetEmbedding {
@@map("asset_embeddings")
}
model AssetTranscript {
id String @id @default(ulid())
assetId String @map("asset_id")
asset Asset @relation(fields: [assetId], references: [id], onDelete: Cascade)
language String
model String
workflowTaskId String @map("workflow_task_id")
createdAt DateTime @default(now()) @map("created_at")
updatedAt DateTime @updatedAt @map("updated_at")
segments AssetTranscriptSegment[]
@@unique([assetId, language], name: "assetIdLanguage")
@@map("asset_transcripts")
}
model AssetTranscriptSegment {
id String @id @default(ulid())
transcriptId String @map("transcript_id")
transcript AssetTranscript @relation(fields: [transcriptId], references: [id], onDelete: Cascade)
position Int
startMs Int @map("start_ms")
endMs Int @map("end_ms")
text String @db.Text
@@unique([transcriptId, position], name: "transcriptIdPosition")
@@map("asset_transcript_segments")
}
model Invite {
id String @id @default(ulid())
code String @unique