import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * A stored text-to-speech generation. */ export type TextToSpeechHistoryObject = { /** * Unique identifier for the history item. */ id: string; /** * The object type, always 'speech.tts'. */ object: "speech.tts"; /** * The input text that was synthesized. */ text: string; /** * The requested language ('auto' or an ISO 639-1 code). */ language: string; /** * The language actually used for synthesis. */ detectedLanguage: string | null; /** * The TTS model used. */ model: string; /** * The provider that produced the audio. */ providerId: string | null; /** * Audio format of the stored output (wav, mp3, or pcm). */ format: string; /** * Size of the generated audio in bytes. */ audioBytes: number; /** * Number of characters in the input text. */ characters: number; /** * Whether the audio was produced via the streaming endpoint. */ streaming: boolean; /** * Arbitrary metadata stored with the item. */ metadata: { [k: string]: any; }; /** * Unix timestamp (seconds) when the item was created. */ createdAt: number; }; /** @internal */ export declare const TextToSpeechHistoryObject$inboundSchema: z.ZodType; /** @internal */ export type TextToSpeechHistoryObject$Outbound = { id: string; object: "speech.tts"; text: string; language: string; detected_language: string | null; model: string; provider_id: string | null; format: string; audio_bytes: number; characters: number; streaming: boolean; metadata: { [k: string]: any; }; created_at: number; }; /** @internal */ export declare const TextToSpeechHistoryObject$outboundSchema: z.ZodType; export declare function textToSpeechHistoryObjectToJSON(textToSpeechHistoryObject: TextToSpeechHistoryObject): string; export declare function textToSpeechHistoryObjectFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=texttospeechhistoryobject.d.ts.map