node-diarization
Version:
Transcription and diarization using Whisper and Pyannote with NodeJS
37 lines (36 loc) • 870 B
TypeScript
export interface Options {
python?: PythonOption;
diarization?: DiarizationOption;
recognition?: RecognitionOption;
checks?: ChecksOptions;
tasks?: Array<Task>;
shell?: ShellOption;
consoleTextInfo?: boolean;
}
export interface PythonOption {
venvPath?: string;
var?: string;
}
export interface ShellOption {
silent?: boolean;
}
export interface DiarizationOption {
pyannote_auth_token: string;
raw?: boolean;
num_speakers?: number;
min_speakers?: number;
max_speakers?: number;
}
export interface RecognitionOption {
raw?: boolean;
model?: string;
hfRepoModel?: boolean;
beam_size?: number;
compute_type?: string;
}
export interface ChecksOptions {
proceed?: boolean;
recognition?: boolean;
diarization?: boolean;
}
export type Task = "diarization" | "recognition" | "checks";