import { APIPromiseWithAwaitableTask } from "../lib/polling.js"; import { APIResource } from "../core/resource.js"; import { RequestOptions } from "../internal/request-options.js"; /** * These endpoints all kick off tasks to create generations. */ export declare class SpeechToSpeech extends APIResource { /** * This endpoint will start a new task to convert speech from one voice to another * in audio or video. */ create(body: SpeechToSpeechCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask; } export interface SpeechToSpeechCreateResponse { /** * The ID of the task that was created. Use this to retrieve the task later. */ id: string; } export interface SpeechToSpeechCreateParams { /** * An audio file containing dialogue to be processed. */ media: SpeechToSpeechCreateParams.Audio | SpeechToSpeechCreateParams.Video; model: 'eleven_multilingual_sts_v2'; /** * A voice preset from the RunwayML API. */ voice: SpeechToSpeechCreateParams.Voice; /** * Whether to remove background noise from the generated speech. */ removeBackgroundNoise?: boolean; } export declare namespace SpeechToSpeechCreateParams { /** * An audio file containing dialogue to be processed. */ interface Audio { type: 'audio'; /** * A HTTPS URL. */ uri: string; } /** * A video file containing dialogue to be processed. */ interface Video { type: 'video'; /** * A HTTPS URL. */ uri: string; } /** * A voice preset from the RunwayML API. */ interface Voice { /** * The preset voice ID to use for the generated speech. */ presetId: 'Maya' | 'Arjun' | 'Serene' | 'Bernard' | 'Billy' | 'Mark' | 'Clint' | 'Mabel' | 'Chad' | 'Leslie' | 'Eleanor' | 'Elias' | 'Elliot' | 'Grungle' | 'Brodie' | 'Sandra' | 'Kirk' | 'Kylie' | 'Lara' | 'Lisa' | 'Malachi' | 'Marlene' | 'Martin' | 'Miriam' | 'Monster' | 'Paula' | 'Pip' | 'Rusty' | 'Ragnar' | 'Xylar' | 'Maggie' | 'Jack' | 'Katie' | 'Noah' | 'James' | 'Rina' | 'Ella' | 'Mariah' | 'Frank' | 'Claudia' | 'Niki' | 'Vincent' | 'Kendrick' | 'Myrna' | 'Tom' | 'Wanda' | 'Benjamin' | 'Kiana' | 'Rachel'; type: 'runway-preset'; } } export declare namespace SpeechToSpeech { export { type SpeechToSpeechCreateResponse as SpeechToSpeechCreateResponse, type SpeechToSpeechCreateParams as SpeechToSpeechCreateParams, }; } //# sourceMappingURL=speech-to-speech.d.ts.map