18 lines
642 B
TypeScript
18 lines
642 B
TypeScript
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>;
|
|
}
|