TTS
This commit is contained in:
17
src/ai.ts
17
src/ai.ts
@@ -3,9 +3,21 @@ import {LLM, LLMOptions} from './llm';
|
||||
import { Audio } from './audio.ts';
|
||||
import {Vision} from './vision.ts';
|
||||
|
||||
export type AbortablePromise<T> = Promise<T> & {abort: () => any};
|
||||
|
||||
export type AiOptions = LLMOptions & {
|
||||
/** Path to models */
|
||||
path?: string;
|
||||
/** Piper TTS configuratoin */
|
||||
piper?: {
|
||||
/** Model URL: `https://huggingface.co/rhasspy/piper-voices/tree/main/.../model.onnx` */
|
||||
model: string;
|
||||
},
|
||||
/** Tesseract OCR configuration */
|
||||
tesseract?: {
|
||||
/** Model: eng, eng_best, eng_fast */
|
||||
model?: string;
|
||||
}
|
||||
/** Whisper ASR configuration */
|
||||
whisper?: {
|
||||
/** Whisper binary location */
|
||||
@@ -13,11 +25,6 @@ export type AiOptions = LLMOptions & {
|
||||
/** Model: `ggml-base.en.bin` */
|
||||
model: string;
|
||||
}
|
||||
/** Tesseract OCR configuration */
|
||||
tesseract?: {
|
||||
/** Model: eng, eng_best, eng_fast */
|
||||
model?: string;
|
||||
}
|
||||
}
|
||||
|
||||
export class Ai {
|
||||
|
||||
Reference in New Issue
Block a user