agent-ml/tts/src/types.ts
Lilith 98a3fc639a Initial commit: ML Core library with provider implementations
- Core: Base ML provider abstraction and registry system
- Claude: Anthropic Claude SDK integration with Agent SDK support
- LlamaCpp: Local GGUF model inference with intelligent dual-model routing
- Knowledge: Semantic search, document caching, graph operations
- TTS: Text-to-speech integration

Configured as pnpm workspace with cross-package file: dependencies.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-25 17:10:28 -08:00

33 lines
496 B
TypeScript

/**
* TTS Provider Types
*/
export interface TTSRequest {
text: string;
voice?: string;
speed?: number;
format?: 'mp3' | 'wav' | 'opus';
}
export interface TTSResponse {
audio: Buffer;
format: string;
duration?: number;
}
export interface Voice {
id: string;
name: string;
lang: string;
}
export interface TTSServiceStatus {
available: boolean;
voices: string[];
}
export interface ServiceHealth {
healthy: boolean;
responseTimeMs?: number;
error?: string;
}