import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { SpeakerSegment, SpeakerSegment$Outbound } from "./speakersegment.js"; /** * A stored speech-to-text transcription. */ export type SpeechToTextHistoryObject = { /** * Unique identifier for the history item. */ id: string; /** * The object type, always 'speech.transcription'. */ object: "speech.transcription"; /** * The transcribed text. */ text: string; /** * The detected or specified language code. */ language: string | null; /** * Confidence score from 0 to 1, when available. */ confidence: number | null; /** * The transcription model used. */ model: string; /** * The provider that produced the transcription. */ providerId: string | null; /** * Original filename of the input audio, when available. */ filename: string | null; /** * Size of the input audio in bytes. */ audioBytes: number; /** * MIME type of the stored input audio. */ audioMimeType: string | null; /** * Speaker diarization segments, when present. */ speakers: Array | null; /** * Whether the transcription came from the streaming WebSocket. */ 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 SpeechToTextHistoryObject$inboundSchema: z.ZodType; /** @internal */ export type SpeechToTextHistoryObject$Outbound = { id: string; object: "speech.transcription"; text: string; language: string | null; confidence: number | null; model: string; provider_id: string | null; filename: string | null; audio_bytes: number; audio_mime_type: string | null; speakers: Array | null; streaming: boolean; metadata: { [k: string]: any; }; created_at: number; }; /** @internal */ export declare const SpeechToTextHistoryObject$outboundSchema: z.ZodType; export declare function speechToTextHistoryObjectToJSON(speechToTextHistoryObject: SpeechToTextHistoryObject): string; export declare function speechToTextHistoryObjectFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=speechtotexthistoryobject.d.ts.map