import * as z from "zod"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; export type FileT = { fileName: string; content: ReadableStream | Blob | ArrayBuffer | Uint8Array; }; export type BodyTranscriptionsV1AudioTranscriptionsPost = { /** * 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: FileT | Blob; /** * The target language for transcription. The set of supported target languages can be found [here](https://github.com/openai/whisper/blob/ba3f3cd54b0e5b8ce1ab3de13e32122d0d5f98ab/whisper/tokenizer.py#L10-L128). */ language: string; /** * 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 FileT$inboundSchema: z.ZodType; /** @internal */ export type FileT$Outbound = { fileName: string; content: ReadableStream | Blob | ArrayBuffer | Uint8Array; }; /** @internal */ export declare const FileT$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 FileT$ { /** @deprecated use `FileT$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `FileT$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `FileT$Outbound` instead. */ type Outbound = FileT$Outbound; } export declare function fileToJSON(fileT: FileT): string; export declare function fileFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const BodyTranscriptionsV1AudioTranscriptionsPost$inboundSchema: z.ZodType; /** @internal */ export type BodyTranscriptionsV1AudioTranscriptionsPost$Outbound = { file: FileT$Outbound | Blob; language: string; alignment_model: string; model: string; prompt?: string | null | undefined; response_format: string; temperature: number; vad_model: string; }; /** @internal */ export declare const BodyTranscriptionsV1AudioTranscriptionsPost$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 BodyTranscriptionsV1AudioTranscriptionsPost$ { /** @deprecated use `BodyTranscriptionsV1AudioTranscriptionsPost$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `BodyTranscriptionsV1AudioTranscriptionsPost$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `BodyTranscriptionsV1AudioTranscriptionsPost$Outbound` instead. */ type Outbound = BodyTranscriptionsV1AudioTranscriptionsPost$Outbound; } export declare function bodyTranscriptionsV1AudioTranscriptionsPostToJSON(bodyTranscriptionsV1AudioTranscriptionsPost: BodyTranscriptionsV1AudioTranscriptionsPost): string; export declare function bodyTranscriptionsV1AudioTranscriptionsPostFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=bodytranscriptionsv1audiotranscriptionspost.d.ts.map