import { CreateSpeechAcceptEnum } from "../funcs/textToSpeechCreateSpeech.js"; import { StreamSpeechAcceptEnum } from "../funcs/textToSpeechStreamSpeech.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as operations from "../models/operations/index.js"; export { CreateSpeechAcceptEnum } from "../funcs/textToSpeechCreateSpeech.js"; export { StreamSpeechAcceptEnum } from "../funcs/textToSpeechStreamSpeech.js"; export declare class TextToSpeech extends ClientSDK { private _createSpeechOriginal?; private _streamSpeechOriginal?; constructor(options: any); /** * Check if text needs to be chunked */ private shouldChunkText; /** * Apply pronunciation dictionary before chunking (opt-in). */ private applyPronunciationDictionary; /** * Extract audio data from response */ private extractAudioFromResponse; /** * Merge multiple audio responses into one */ private mergeAudioResponses; /** * Create extended streaming response for long text * Streams each text chunk progressively without waiting for full completion */ private createExtendedStreamingResponse; /** * Create speech with auto-chunking support (internal implementation) */ private createSpeechWithChunking; /** * Stream speech with auto-chunking support (internal implementation) */ private streamSpeechWithChunking; /** * Convert text to speech * * @remarks * Convert text to speech using the specified voice */ createSpeech(request: operations.CreateSpeechRequest, options?: RequestOptions & { acceptHeaderOverride?: CreateSpeechAcceptEnum; }): Promise; /** * Convert text to speech with streaming response * * @remarks * Convert text to speech using the specified voice with streaming response. Returns binary audio stream. */ streamSpeech(request: operations.StreamSpeechRequest, options?: RequestOptions & { acceptHeaderOverride?: StreamSpeechAcceptEnum; }): Promise; /** * Predict text-to-speech duration * * @remarks * Predict the duration of text-to-speech conversion without generating audio */ predictDuration(request: operations.PredictDurationRequest, options?: RequestOptions): Promise; } //# sourceMappingURL=texttospeech.d.ts.map