Add server: Express web UI + API for remote audio description generation with job queue, basic auth, resumable processing, subtitles, and muxing
This commit is contained in:
@@ -81,10 +81,28 @@ export interface BatchContext {
|
||||
lastFramePaths?: string[];
|
||||
}
|
||||
|
||||
// Progress callback for real-time tracking
|
||||
export interface ProgressInfo {
|
||||
type: 'frame' | 'batch';
|
||||
index: number;
|
||||
total: number;
|
||||
segment: AudioSegment;
|
||||
}
|
||||
|
||||
// Extended processing options for resumability
|
||||
export interface ProcessingOptions {
|
||||
startIndex?: number;
|
||||
existingSegments?: AudioSegment[];
|
||||
lastContext?: BatchContext;
|
||||
currentTimePosition?: number;
|
||||
onProgress?: (info: ProgressInfo) => void;
|
||||
}
|
||||
|
||||
// Result interfaces
|
||||
export interface ProcessingResult {
|
||||
videoFile: string;
|
||||
audioDescriptionFile: string;
|
||||
segments: AudioSegment[];
|
||||
}
|
||||
|
||||
export interface CostBreakdown {
|
||||
|
||||
Reference in New Issue
Block a user