feat: 功能

This commit is contained in:
2025-11-12 22:45:29 +08:00
parent 94c114a44d
commit fc7d2ccea5
41 changed files with 2406 additions and 343 deletions

52
frontend/config/types.ts Normal file
View File

@@ -0,0 +1,52 @@
/**
* 公共类型定义
* 可在 monorepo 各个应用中复用
*/
/**
* 音频项接口
*/
export interface AudioItem {
audio_url: string
}
/**
* 转录结果接口
*/
export interface TranscriptionResult {
key: string
audio_url?: string
value: string
}
/**
* 视频转字符请求参数
*/
export interface VideoToCharactersRequest {
fileLinkList: string[]
}
/**
* 视频转字符响应接口
*/
export interface VideoToCharactersResponse {
data: string // JSON 字符串,包含 results 数组
}
/**
* 转录响应结果
*/
export interface TranscriptionResponse {
results: Array<{
transcription_url: string
}>
}
/**
* 转录数据接口
*/
export interface TranscriptionData {
file_url?: string
transcripts?: Array<{ text: string }>
}