/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 43871ae3ebde
 */
import * as z from "zod/v4";
import { safeParse } from "../../lib/schemas.js";
import { TranscriptionSegmentChunk$inboundSchema, } from "./transcriptionsegmentchunk.js";
import { UsageInfo$inboundSchema } from "./usageinfo.js";
/** @internal */
export const TranscriptionResponse$inboundSchema = z.object({
    model: z.string(),
    text: z.string(),
    segments: z.array(TranscriptionSegmentChunk$inboundSchema).optional(),
    usage: UsageInfo$inboundSchema,
    language: z.nullable(z.string()),
}).catchall(z.any());
export function transcriptionResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => TranscriptionResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TranscriptionResponse' from JSON`);
}
//# sourceMappingURL=transcriptionresponse.js.map