import * as z from "zod"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; export type TranscriptionSegment = { /** * Unique identifier of the segment. */ id: number; /** * Seek offset of the segment */ seek: number; /** * Start time of the segment in seconds. */ start: number; /** * End time of the segment in seconds. */ end: number; /** * Text content of the segment. */ text: string; /** * Array of token IDs for the text content. */ tokens: Array; /** * Temperature parameter used for generating the segment. */ temperature: number; /** * Average logprob of the segment. If the value is lower than -1, consider the logprobs failed. */ avgLogprob: number; /** * Compression ratio of the segment. If the value is greater than 2.4, consider the compression failed. */ compressionRatio: number; /** * Probability of no speech in the segment. If the value is higher than 1.0 and the avg_logprob is below -1, consider this segment silent. */ noSpeechProb: number; }; /** @internal */ export declare const TranscriptionSegment$inboundSchema: z.ZodType; /** @internal */ export type TranscriptionSegment$Outbound = { id: number; seek: number; start: number; end: number; text: string; tokens: Array; temperature: number; avg_logprob: number; compression_ratio: number; no_speech_prob: number; }; /** @internal */ export declare const TranscriptionSegment$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 TranscriptionSegment$ { /** @deprecated use `TranscriptionSegment$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `TranscriptionSegment$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `TranscriptionSegment$Outbound` instead. */ type Outbound = TranscriptionSegment$Outbound; } export declare function transcriptionSegmentToJSON(transcriptionSegment: TranscriptionSegment): string; export declare function transcriptionSegmentFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=transcriptionsegment.d.ts.map