import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as models from "../index.js"; export type CreateSpeechRequest = { voiceId: string; apiConvertTextToSpeechUsingCharacterRequest: models.APIConvertTextToSpeechUsingCharacterRequest; }; /** * Phoneme timing data with IPA symbols */ export type Phonemes = { /** * List of IPA phonetic symbols */ symbols?: Array | undefined; /** * Start times for each phoneme in seconds */ startTimesSeconds?: Array | undefined; /** * Duration for each phoneme in seconds */ durationsSeconds?: Array | undefined; }; /** * JSON response with base64 audio and phoneme data (when include_phonemes=true) */ export type CreateSpeechResponseBody = { /** * Base64 encoded audio data */ audioBase64: string; /** * Phoneme timing data with IPA symbols */ phonemes?: Phonemes | undefined; }; export type CreateSpeechResponseResult = CreateSpeechResponseBody | ReadableStream | ReadableStream; export type CreateSpeechResponse = { headers: { [k: string]: Array; }; result: CreateSpeechResponseBody | ReadableStream | ReadableStream; }; /** @internal */ export declare const CreateSpeechRequest$inboundSchema: z.ZodType; /** @internal */ export type CreateSpeechRequest$Outbound = { voice_id: string; APIConvertTextToSpeechUsingCharacterRequest: models.APIConvertTextToSpeechUsingCharacterRequest$Outbound; }; /** @internal */ export declare const CreateSpeechRequest$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 CreateSpeechRequest$ { /** @deprecated use `CreateSpeechRequest$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `CreateSpeechRequest$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `CreateSpeechRequest$Outbound` instead. */ type Outbound = CreateSpeechRequest$Outbound; } export declare function createSpeechRequestToJSON(createSpeechRequest: CreateSpeechRequest): string; export declare function createSpeechRequestFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Phonemes$inboundSchema: z.ZodType; /** @internal */ export type Phonemes$Outbound = { symbols?: Array | undefined; start_times_seconds?: Array | undefined; durations_seconds?: Array | undefined; }; /** @internal */ export declare const Phonemes$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 Phonemes$ { /** @deprecated use `Phonemes$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Phonemes$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Phonemes$Outbound` instead. */ type Outbound = Phonemes$Outbound; } export declare function phonemesToJSON(phonemes: Phonemes): string; export declare function phonemesFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CreateSpeechResponseBody$inboundSchema: z.ZodType; /** @internal */ export type CreateSpeechResponseBody$Outbound = { audio_base64: string; phonemes?: Phonemes$Outbound | undefined; }; /** @internal */ export declare const CreateSpeechResponseBody$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 CreateSpeechResponseBody$ { /** @deprecated use `CreateSpeechResponseBody$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `CreateSpeechResponseBody$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `CreateSpeechResponseBody$Outbound` instead. */ type Outbound = CreateSpeechResponseBody$Outbound; } export declare function createSpeechResponseBodyToJSON(createSpeechResponseBody: CreateSpeechResponseBody): string; export declare function createSpeechResponseBodyFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CreateSpeechResponseResult$inboundSchema: z.ZodType; /** @internal */ export type CreateSpeechResponseResult$Outbound = CreateSpeechResponseBody$Outbound | ReadableStream | ReadableStream; /** @internal */ export declare const CreateSpeechResponseResult$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 CreateSpeechResponseResult$ { /** @deprecated use `CreateSpeechResponseResult$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `CreateSpeechResponseResult$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `CreateSpeechResponseResult$Outbound` instead. */ type Outbound = CreateSpeechResponseResult$Outbound; } export declare function createSpeechResponseResultToJSON(createSpeechResponseResult: CreateSpeechResponseResult): string; export declare function createSpeechResponseResultFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CreateSpeechResponse$inboundSchema: z.ZodType; /** @internal */ export type CreateSpeechResponse$Outbound = { Headers: { [k: string]: Array; }; Result: CreateSpeechResponseBody$Outbound | ReadableStream | ReadableStream; }; /** @internal */ export declare const CreateSpeechResponse$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 CreateSpeechResponse$ { /** @deprecated use `CreateSpeechResponse$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `CreateSpeechResponse$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `CreateSpeechResponse$Outbound` instead. */ type Outbound = CreateSpeechResponse$Outbound; } export declare function createSpeechResponseToJSON(createSpeechResponse: CreateSpeechResponse): string; export declare function createSpeechResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=createspeech.d.ts.map