Speaker diarization
This commit is contained in:
20
src/ai.ts
20
src/ai.ts
@@ -10,24 +10,16 @@ export type AbortablePromise<T> = Promise<T> & {
|
||||
export type AiOptions = {
|
||||
/** Path to models */
|
||||
path?: string;
|
||||
/** Embedding model */
|
||||
embedder?: string; // all-MiniLM-L6-v2, bge-small-en-v1.5, bge-large-en-v1.5
|
||||
/** ASR model: whisper-tiny, whisper-base */
|
||||
asr?: string;
|
||||
/** Embedding model: all-MiniLM-L6-v2, bge-small-en-v1.5, bge-large-en-v1.5 */
|
||||
embedder?: string;
|
||||
/** Large language models, first is default */
|
||||
llm?: Omit<LLMRequest, 'model'> & {
|
||||
models: {[model: string]: AnthropicConfig | OllamaConfig | OpenAiConfig};
|
||||
}
|
||||
/** Tesseract OCR configuration */
|
||||
tesseract?: {
|
||||
/** Model: eng, eng_best, eng_fast */
|
||||
model?: string;
|
||||
}
|
||||
/** Whisper ASR configuration */
|
||||
whisper?: {
|
||||
/** Whisper binary location */
|
||||
binary: string;
|
||||
/** Model: `ggml-base.en.bin` */
|
||||
model: string;
|
||||
}
|
||||
/** OCR model: eng, eng_best, eng_fast */
|
||||
ocr?: string;
|
||||
}
|
||||
|
||||
export class Ai {
|
||||
|
||||
Reference in New Issue
Block a user