import * as z from "zod/v4"; import { OpenEnum } from "../types/enums.js"; import { ProviderOptions, ProviderOptions$Outbound } from "./provideroptions.js"; /** * Provider-specific passthrough configuration */ export type SpeechRequestProvider = { /** * Provider-specific options keyed by provider slug. The options for the matched provider are spread into the upstream request body. */ options?: ProviderOptions | undefined; }; /** * Audio output format */ export declare const ResponseFormatEnum: { readonly Mp3: "mp3"; readonly Pcm: "pcm"; }; /** * Audio output format */ export type ResponseFormatEnum = OpenEnum; /** * Text-to-speech request input */ export type SpeechRequest = { /** * Text to synthesize */ input: string; /** * TTS model identifier */ model: string; /** * Provider-specific passthrough configuration */ provider?: SpeechRequestProvider | undefined; /** * Audio output format */ responseFormat?: ResponseFormatEnum | undefined; /** * Playback speed multiplier. Only used by models that support it (e.g. OpenAI TTS). Ignored by other providers. */ speed?: number | undefined; /** * Voice identifier (provider-specific). */ voice: string; }; /** @internal */ export type SpeechRequestProvider$Outbound = { options?: ProviderOptions$Outbound | undefined; }; /** @internal */ export declare const SpeechRequestProvider$outboundSchema: z.ZodType; export declare function speechRequestProviderToJSON(speechRequestProvider: SpeechRequestProvider): string; /** @internal */ export declare const ResponseFormatEnum$outboundSchema: z.ZodType; /** @internal */ export type SpeechRequest$Outbound = { input: string; model: string; provider?: SpeechRequestProvider$Outbound | undefined; response_format: string; speed?: number | undefined; voice: string; }; /** @internal */ export declare const SpeechRequest$outboundSchema: z.ZodType; export declare function speechRequestToJSON(speechRequest: SpeechRequest): string; //# sourceMappingURL=speechrequest.d.ts.map