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"; /** * The language code of the text */ export declare const APIConvertTextToSpeechUsingCharacterRequestLanguage: { 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"; }; /** * The language code of the text */ export type APIConvertTextToSpeechUsingCharacterRequestLanguage = ClosedEnum; /** * The model type to use for the text-to-speech conversion */ export declare const APIConvertTextToSpeechUsingCharacterRequestModel: { 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 APIConvertTextToSpeechUsingCharacterRequestModel = ClosedEnum; /** * The desired output format of the audio file (wav, mp3). Default is wav. */ export declare const APIConvertTextToSpeechUsingCharacterRequestOutputFormat: { readonly Wav: "wav"; readonly Mp3: "mp3"; }; /** * The desired output format of the audio file (wav, mp3). Default is wav. */ export type APIConvertTextToSpeechUsingCharacterRequestOutputFormat = ClosedEnum; export type APIConvertTextToSpeechUsingCharacterRequest = { /** * The text to convert to speech */ text: string; /** * The language code of the text */ language: APIConvertTextToSpeechUsingCharacterRequestLanguage; /** * 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?: APIConvertTextToSpeechUsingCharacterRequestModel | undefined; /** * The desired output format of the audio file (wav, mp3). Default is wav. */ outputFormat?: APIConvertTextToSpeechUsingCharacterRequestOutputFormat | undefined; voiceSettings?: ConvertTextToSpeechParameters | undefined; /** * Return phoneme timing data with the audio */ includePhonemes?: boolean | undefined; /** * Pre-normalized text for TTS. Only used with sona_speech_2 and sona_speech_2_flash models. */ normalizedText?: string | undefined; }; /** @internal */ export declare const APIConvertTextToSpeechUsingCharacterRequestLanguage$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const APIConvertTextToSpeechUsingCharacterRequestLanguage$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 APIConvertTextToSpeechUsingCharacterRequestLanguage$ { /** @deprecated use `APIConvertTextToSpeechUsingCharacterRequestLanguage$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 `APIConvertTextToSpeechUsingCharacterRequestLanguage$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 APIConvertTextToSpeechUsingCharacterRequestModel$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const APIConvertTextToSpeechUsingCharacterRequestModel$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 APIConvertTextToSpeechUsingCharacterRequestModel$ { /** @deprecated use `APIConvertTextToSpeechUsingCharacterRequestModel$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 `APIConvertTextToSpeechUsingCharacterRequestModel$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 APIConvertTextToSpeechUsingCharacterRequestOutputFormat$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const APIConvertTextToSpeechUsingCharacterRequestOutputFormat$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 APIConvertTextToSpeechUsingCharacterRequestOutputFormat$ { /** @deprecated use `APIConvertTextToSpeechUsingCharacterRequestOutputFormat$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Wav: "wav"; readonly Mp3: "mp3"; }>; /** @deprecated use `APIConvertTextToSpeechUsingCharacterRequestOutputFormat$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Wav: "wav"; readonly Mp3: "mp3"; }>; } /** @internal */ export declare const APIConvertTextToSpeechUsingCharacterRequest$inboundSchema: z.ZodType; /** @internal */ export type APIConvertTextToSpeechUsingCharacterRequest$Outbound = { text: string; language: string; style?: string | undefined; model: string; output_format: string; voice_settings?: ConvertTextToSpeechParameters$Outbound | undefined; include_phonemes: boolean; normalized_text?: string | undefined; }; /** @internal */ export declare const APIConvertTextToSpeechUsingCharacterRequest$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 APIConvertTextToSpeechUsingCharacterRequest$ { /** @deprecated use `APIConvertTextToSpeechUsingCharacterRequest$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `APIConvertTextToSpeechUsingCharacterRequest$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `APIConvertTextToSpeechUsingCharacterRequest$Outbound` instead. */ type Outbound = APIConvertTextToSpeechUsingCharacterRequest$Outbound; } export declare function apiConvertTextToSpeechUsingCharacterRequestToJSON(apiConvertTextToSpeechUsingCharacterRequest: APIConvertTextToSpeechUsingCharacterRequest): string; export declare function apiConvertTextToSpeechUsingCharacterRequestFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=apiconverttexttospeechusingcharacterrequest.d.ts.map