Files
sionrui/frontend/config/types.ts
2025-11-12 22:45:29 +08:00

53 lines
787 B
TypeScript

/**
* 公共类型定义
* 可在 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 }>
}