import * as z from "zod"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; export type BodyTranslationsV1AudioTranslationsPostFile = { fileName: string; content: ReadableStream | Blob | ArrayBuffer | Uint8Array; }; export type BodyTranslationsV1AudioTranslationsPost = { /** * The input audio file to transcribe. Common file formats such as mp3, flac, and wav are supported. Note that the audio will be resampled to 16kHz, downmixed to mono, and reformatted to 16-bit signed little-endian format before transcription. Pre-converting the file before sending it to the API can improve runtime performance. */ file: BodyTranslationsV1AudioTranslationsPostFile | Blob; /** * The model used for alignment. */ alignmentModel?: string | undefined; /** * String name of the ASR model to use. Currently "whisper-v3" is supported. */ model?: string | undefined; /** * The input prompt with which to prime transcription. This can be used, for example, to continue a prior transcription given new audio data. */ prompt?: string | null | undefined; /** * The format in which to return the response. Can be one of `json`, `text`, `srt`, `verbose_json`, or `vtt`. */ responseFormat?: string | undefined; /** * Sampling temperature to use when decoding text tokens during transcription. */ temperature?: number | undefined; /** * The Voice Activity Detection model to use. */ vadModel?: string | undefined; }; /** @internal */ export declare const BodyTranslationsV1AudioTranslationsPostFile$inboundSchema: z.ZodType; /** @internal */ export type BodyTranslationsV1AudioTranslationsPostFile$Outbound = { fileName: string; content: ReadableStream | Blob | ArrayBuffer | Uint8Array; }; /** @internal */ export declare const BodyTranslationsV1AudioTranslationsPostFile$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 BodyTranslationsV1AudioTranslationsPostFile$ { /** @deprecated use `BodyTranslationsV1AudioTranslationsPostFile$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `BodyTranslationsV1AudioTranslationsPostFile$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `BodyTranslationsV1AudioTranslationsPostFile$Outbound` instead. */ type Outbound = BodyTranslationsV1AudioTranslationsPostFile$Outbound; } export declare function bodyTranslationsV1AudioTranslationsPostFileToJSON(bodyTranslationsV1AudioTranslationsPostFile: BodyTranslationsV1AudioTranslationsPostFile): string; export declare function bodyTranslationsV1AudioTranslationsPostFileFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const BodyTranslationsV1AudioTranslationsPost$inboundSchema: z.ZodType; /** @internal */ export type BodyTranslationsV1AudioTranslationsPost$Outbound = { file: BodyTranslationsV1AudioTranslationsPostFile$Outbound | Blob; alignment_model: string; model: string; prompt?: string | null | undefined; response_format: string; temperature: number; vad_model: string; }; /** @internal */ export declare const BodyTranslationsV1AudioTranslationsPost$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 BodyTranslationsV1AudioTranslationsPost$ { /** @deprecated use `BodyTranslationsV1AudioTranslationsPost$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `BodyTranslationsV1AudioTranslationsPost$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `BodyTranslationsV1AudioTranslationsPost$Outbound` instead. */ type Outbound = BodyTranslationsV1AudioTranslationsPost$Outbound; } export declare function bodyTranslationsV1AudioTranslationsPostToJSON(bodyTranslationsV1AudioTranslationsPost: BodyTranslationsV1AudioTranslationsPost): string; export declare function bodyTranslationsV1AudioTranslationsPostFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=bodytranslationsv1audiotranslationspost.d.ts.map