UNPKG

aiwrapper

Version:

A Universal AI Wrapper for JavaScript & TypeScript

28 lines (27 loc) 719 B
export declare abstract class TextToSpeech { static elevenlabs(options: ElevenLabsTextToSpeechOptions): ElevenLabsTextToSpeech; } type ElevenLabsTextToSpeechOptions = { apiKey: string; model?: string; voiceId?: string; voice_settings?: { stability: number; similarity_boost: number; }; }; type ElevenLabsTextToSpeechConfig = { apiKey: string; model: string; voiceId: string; voice_settings: { stability: number; similarity_boost: number; }; }; export declare class ElevenLabsTextToSpeech { _config: ElevenLabsTextToSpeechConfig; constructor(options: ElevenLabsTextToSpeechOptions); ask(text: string): Promise<string>; } export {};