import * as z from "zod"; import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { ConvertTextToSpeechParameters, ConvertTextToSpeechParameters$Outbound } from "./converttexttospeechparameters.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; /** * Language code of the voice */ export declare const PredictTTSDurationRequestLanguage: { readonly En: "en"; readonly Ko: "ko"; readonly Ja: "ja"; readonly Bg: "bg"; readonly Cs: "cs"; readonly Da: "da"; readonly El: "el"; readonly Es: "es"; readonly Et: "et"; readonly Fi: "fi"; readonly Hu: "hu"; readonly It: "it"; readonly Nl: "nl"; readonly Pl: "pl"; readonly Pt: "pt"; readonly Ro: "ro"; readonly Ar: "ar"; readonly De: "de"; readonly Fr: "fr"; readonly Hi: "hi"; readonly Id: "id"; readonly Ru: "ru"; readonly Vi: "vi"; readonly Hr: "hr"; readonly Lt: "lt"; readonly Lv: "lv"; readonly Sk: "sk"; readonly Sl: "sl"; readonly Sv: "sv"; readonly Tr: "tr"; readonly Uk: "uk"; }; /** * Language code of the voice */ export type PredictTTSDurationRequestLanguage = ClosedEnum; /** * The model type to use for the text-to-speech conversion */ export declare const PredictTTSDurationRequestModel: { readonly SonaSpeech1: "sona_speech_1"; readonly SonaSpeech2: "sona_speech_2"; readonly SonaSpeech2t: "sona_speech_2t"; readonly SonaSpeech2Flash: "sona_speech_2_flash"; readonly SupertonicApi1: "supertonic_api_1"; readonly SonaSpeech3t: "sona_speech_3t"; readonly SupertonicApi3: "supertonic_api_3"; }; /** * The model type to use for the text-to-speech conversion */ export type PredictTTSDurationRequestModel = ClosedEnum; /** * The desired output format of the audio file (wav, mp3). Default is wav. */ export declare const PredictTTSDurationRequestOutputFormat: { readonly Wav: "wav"; readonly Mp3: "mp3"; }; /** * The desired output format of the audio file (wav, mp3). Default is wav. */ export type PredictTTSDurationRequestOutputFormat = ClosedEnum; export type PredictTTSDurationRequest = { /** * The text to convert to speech. Max length is 300 characters. */ text: string; /** * Language code of the voice */ language: PredictTTSDurationRequestLanguage; /** * The style of character to use for the text-to-speech conversion */ style?: string | undefined; /** * The model type to use for the text-to-speech conversion */ model?: PredictTTSDurationRequestModel | undefined; /** * The desired output format of the audio file (wav, mp3). Default is wav. */ outputFormat?: PredictTTSDurationRequestOutputFormat | undefined; voiceSettings?: ConvertTextToSpeechParameters | undefined; }; /** @internal */ export declare const PredictTTSDurationRequestLanguage$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const PredictTTSDurationRequestLanguage$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PredictTTSDurationRequestLanguage$ { /** @deprecated use `PredictTTSDurationRequestLanguage$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly En: "en"; readonly Ko: "ko"; readonly Ja: "ja"; readonly Bg: "bg"; readonly Cs: "cs"; readonly Da: "da"; readonly El: "el"; readonly Es: "es"; readonly Et: "et"; readonly Fi: "fi"; readonly Hu: "hu"; readonly It: "it"; readonly Nl: "nl"; readonly Pl: "pl"; readonly Pt: "pt"; readonly Ro: "ro"; readonly Ar: "ar"; readonly De: "de"; readonly Fr: "fr"; readonly Hi: "hi"; readonly Id: "id"; readonly Ru: "ru"; readonly Vi: "vi"; readonly Hr: "hr"; readonly Lt: "lt"; readonly Lv: "lv"; readonly Sk: "sk"; readonly Sl: "sl"; readonly Sv: "sv"; readonly Tr: "tr"; readonly Uk: "uk"; }>; /** @deprecated use `PredictTTSDurationRequestLanguage$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly En: "en"; readonly Ko: "ko"; readonly Ja: "ja"; readonly Bg: "bg"; readonly Cs: "cs"; readonly Da: "da"; readonly El: "el"; readonly Es: "es"; readonly Et: "et"; readonly Fi: "fi"; readonly Hu: "hu"; readonly It: "it"; readonly Nl: "nl"; readonly Pl: "pl"; readonly Pt: "pt"; readonly Ro: "ro"; readonly Ar: "ar"; readonly De: "de"; readonly Fr: "fr"; readonly Hi: "hi"; readonly Id: "id"; readonly Ru: "ru"; readonly Vi: "vi"; readonly Hr: "hr"; readonly Lt: "lt"; readonly Lv: "lv"; readonly Sk: "sk"; readonly Sl: "sl"; readonly Sv: "sv"; readonly Tr: "tr"; readonly Uk: "uk"; }>; } /** @internal */ export declare const PredictTTSDurationRequestModel$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const PredictTTSDurationRequestModel$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PredictTTSDurationRequestModel$ { /** @deprecated use `PredictTTSDurationRequestModel$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly SonaSpeech1: "sona_speech_1"; readonly SonaSpeech2: "sona_speech_2"; readonly SonaSpeech2t: "sona_speech_2t"; readonly SonaSpeech2Flash: "sona_speech_2_flash"; readonly SupertonicApi1: "supertonic_api_1"; readonly SonaSpeech3t: "sona_speech_3t"; readonly SupertonicApi3: "supertonic_api_3"; }>; /** @deprecated use `PredictTTSDurationRequestModel$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly SonaSpeech1: "sona_speech_1"; readonly SonaSpeech2: "sona_speech_2"; readonly SonaSpeech2t: "sona_speech_2t"; readonly SonaSpeech2Flash: "sona_speech_2_flash"; readonly SupertonicApi1: "supertonic_api_1"; readonly SonaSpeech3t: "sona_speech_3t"; readonly SupertonicApi3: "supertonic_api_3"; }>; } /** @internal */ export declare const PredictTTSDurationRequestOutputFormat$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const PredictTTSDurationRequestOutputFormat$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PredictTTSDurationRequestOutputFormat$ { /** @deprecated use `PredictTTSDurationRequestOutputFormat$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Wav: "wav"; readonly Mp3: "mp3"; }>; /** @deprecated use `PredictTTSDurationRequestOutputFormat$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Wav: "wav"; readonly Mp3: "mp3"; }>; } /** @internal */ export declare const PredictTTSDurationRequest$inboundSchema: z.ZodType; /** @internal */ export type PredictTTSDurationRequest$Outbound = { text: string; language: string; style?: string | undefined; model: string; output_format: string; voice_settings?: ConvertTextToSpeechParameters$Outbound | undefined; }; /** @internal */ export declare const PredictTTSDurationRequest$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PredictTTSDurationRequest$ { /** @deprecated use `PredictTTSDurationRequest$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `PredictTTSDurationRequest$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `PredictTTSDurationRequest$Outbound` instead. */ type Outbound = PredictTTSDurationRequest$Outbound; } export declare function predictTTSDurationRequestToJSON(predictTTSDurationRequest: PredictTTSDurationRequest): string; export declare function predictTTSDurationRequestFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=predictttsdurationrequest.d.ts.map