import http from 'http'; import { AudioSeparationRunInfoResponse } from '../model/audioSeparationRunInfoResponse'; import { BodyTranslateTranslatePost } from '../model/bodyTranslateTranslatePost'; import { CreateCustomVoiceOut } from '../model/createCustomVoiceOut'; import { CreateTTSRequestPayload } from '../model/createTTSRequestPayload'; import { CreateTextToAudioRequestPayload } from '../model/createTextToAudioRequestPayload'; import { CreateTextToVoiceRequestPayload } from '../model/createTextToVoiceRequestPayload'; import { CreateTranslatedStoryRequestPayload } from '../model/createTranslatedStoryRequestPayload'; import { CreateTranslatedTTSRequestPayload } from '../model/createTranslatedTTSRequestPayload'; import { CreateTranslationStreamRequestPayload } from '../model/createTranslationStreamRequestPayload'; import { DialogueItem } from '../model/dialogueItem'; import { Dictionary } from '../model/dictionary'; import { EndToEndDubbingRequestPayload } from '../model/endToEndDubbingRequestPayload'; import { Gender } from '../model/gender'; import { LanguageItem } from '../model/languageItem'; import { Languages } from '../model/languages'; import { OrchestratorPipelineResult } from '../model/orchestratorPipelineResult'; import { OutputType } from '../model/outputType'; import { RunInfoResponse } from '../model/runInfoResponse'; import { StoryRunInfoResponse } from '../model/storyRunInfoResponse'; import { TaskID } from '../model/taskID'; import { TaskStatus } from '../model/taskStatus'; import { TextToVoiceRunInfoResponse } from '../model/textToVoiceRunInfoResponse'; import { TranslationResult } from '../model/translationResult'; import { VoiceItem } from '../model/voiceItem'; import { Authentication, Interceptor } from '../model/models'; import { ApiKeyAuth } from '../model/models'; import { RequestFile } from './apis'; export declare enum ApiKey { APIKeyHeader = 0 } export declare class CambAI { protected _basePath: string; protected _defaultHeaders: any; protected _useQuerystring: boolean; protected authentications: { default: Authentication; APIKeyHeader: ApiKeyAuth; }; protected interceptors: Interceptor[]; constructor(basePath?: string); set useQuerystring(value: boolean); set basePath(basePath: string); set defaultHeaders(defaultHeaders: any); get defaultHeaders(): any; get basePath(): string; setDefaultAuthentication(auth: Authentication): void; setApiKey(key: ApiKey, value: string): void; addInterceptor(interceptor: Interceptor): void; createAudioSeparation(audioFile?: RequestFile, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: TaskID; }>; createCustomVoice(voiceName: string, gender: Gender, file: RequestFile, description?: string, publishVoiceToMarketPlace?: boolean, age?: number, enhanceAudio?: boolean, language?: Languages, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: CreateCustomVoiceOut; }>; createEndToEndDubbing(endToEndDubbingRequestPayload: EndToEndDubbingRequestPayload, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: TaskID; }>; createStory(file: RequestFile, sourceLanguage: Languages, title?: string, description?: string, narratorVoiceId?: number, chosenDictionaries?: Array, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: TaskID; }>; createTextToSound(createTextToAudioRequestPayload: CreateTextToAudioRequestPayload, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: TaskID; }>; createTranscription(language: Languages, file: RequestFile, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: TaskID; }>; createTranslatedStory(runId: number, createTranslatedStoryRequestPayload: CreateTranslatedStoryRequestPayload, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: TaskID; }>; createTranslatedTts(createTranslatedTTSRequestPayload: CreateTranslatedTTSRequestPayload, runId?: number, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: any; }>; createTranslation(bodyTranslateTranslatePost: BodyTranslateTranslatePost, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: TaskID; }>; createTranslationStream(createTranslationStreamRequestPayload: CreateTranslationStreamRequestPayload, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: string; }>; createTts(createTTSRequestPayload: CreateTTSRequestPayload, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: TaskID; }>; createVoiceFromDescription(createTextToVoiceRequestPayload: CreateTextToVoiceRequestPayload, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: TaskID; }>; dictionariesGet(options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: Array; }>; getAudioSeparationRunInfoById(runId: number, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: AudioSeparationRunInfoResponse; }>; getAudioSeparationStatusById(taskId: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: TaskStatus; }>; getDubbedRunInfoById(runId: number, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: RunInfoResponse; }>; getEndToEndDubbingStatusById(taskId: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: OrchestratorPipelineResult; }>; getSourceLanguages(options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: Array; }>; getStoryRunInfoById(runId: number, includeTranscript?: boolean, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: StoryRunInfoResponse; }>; getStoryStatusById(taskId: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: OrchestratorPipelineResult; }>; getTargetLanguages(options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: Array; }>; getTextToAudioStatusById(taskId: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: OrchestratorPipelineResult; }>; getTextToSoundRunResultById(runId: number, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: Buffer; }>; getTextToVoiceRunResultById(runId: number, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: TextToVoiceRunInfoResponse; }>; getTranscriptionResultById(runId: number, wordLevelTimestamps?: boolean, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: Array; }>; getTranscriptionTaskStatusById(taskId: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: OrchestratorPipelineResult; }>; getTranslatedStoryRunInfo(runId: number, targetLanguage: Languages, includeTranscript?: boolean, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: StoryRunInfoResponse; }>; getTranslatedStoryStatusById(taskId: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: OrchestratorPipelineResult; }>; getTranslatedTtsTaskStatusById(taskId: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: OrchestratorPipelineResult; }>; getTranslationResultById(runId: number, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: TranslationResult; }>; getTranslationTaskStatusById(taskId: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: OrchestratorPipelineResult; }>; getTtsResultById(id: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: OrchestratorPipelineResult; }>; getTtsRunInfoById(runId: number, outputType?: OutputType, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: string; }>; listVoices(options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: Array; }>; textToVoiceTaskIdGet(taskId: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: OrchestratorPipelineResult; }>; pollForCompletion(checkStatusFn: () => Promise, isCompleteFn: (result: T) => boolean, timeout: number, verbose?: boolean, taskName?: string): Promise; textToAudio(prompt: string, duration: number, timeout?: number, saveToFile?: string, verbose?: boolean): Promise; textToVoice(text: string, voiceDescription: string, timeout?: number, verbose?: boolean): Promise; private getTtsRunInfoByIdRaw; textToSpeech(text: string, voiceId: number, language?: Languages, timeout?: number, outputType?: OutputType, saveToFile?: string, verbose?: boolean): Promise; endToEndDubbing(videoUrl: string, sourceLanguage: Languages, targetLanguages?: Array, timeout?: number, verbose?: boolean): Promise; }