Files
aidio-description/dist/providers/tts/openAITTSProvider.d.ts

18 lines
642 B
TypeScript
Raw Normal View History

import { TTSProvider, TTSProviderConfig, TTSOptions, TTSResult } from '../../interfaces';
/**
* OpenAI TTS Provider Implementation
*/
export declare class OpenAITTSProvider implements TTSProvider {
private config;
private openai;
constructor(config: TTSProviderConfig);
/**
* Convert text to speech
* @param text - Text to convert to speech
* @param outputPath - Output path for the audio file
* @param options - Additional options
* @returns Duration of the generated audio in seconds and cost
*/
textToSpeech(text: string, outputPath: string, options?: TTSOptions): Promise<TTSResult>;
}