TTS
All checks were successful
Publish Library / Build NPM Project (push) Successful in 49s
Publish Library / Tag Version (push) Successful in 16s

This commit is contained in:
2026-01-30 15:39:20 -05:00
parent d5bf1ec47e
commit 28904cddbe
10 changed files with 696 additions and 944 deletions

View File

@@ -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 {