-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
53 lines (46 loc) · 1.03 KB
/
types.ts
File metadata and controls
53 lines (46 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
export interface FrameData {
frameIndex: number;
time: number;
volume: number;
isSpeech: boolean;
}
export interface SheetConfig {
fps: number;
secondsPerColumn: number;
columnsPerSheet: number;
}
export enum RecordingState {
IDLE = 'IDLE',
RECORDING = 'RECORDING',
PROCESSING = 'PROCESSING',
PLAYING = 'PLAYING',
PAUSED = 'PAUSED',
}
export interface TranscriptSegment {
text: string;
start?: string;
end?: string;
}
export interface Track {
id: string;
name: string;
color: string; // Tailwind color class prefix (e.g. 'blue', 'red')
audioBuffer: AudioBuffer | null;
frames: FrameData[];
waveformReferenceMax: number;
speechOverrides: number[];
isVisible: boolean;
isMuted: boolean;
}
export type InputTestStatus = 'idle' | 'running' | 'success' | 'error';
export type InputTestState = {
status: InputTestStatus;
progress: number;
message: string;
recommendedGainDb?: number;
appliedGainDb?: number;
peakDb?: number;
rmsDb?: number;
speechRatio?: number;
clipped?: boolean;
};