/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: e03c9f20f84c
 */
import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
/** @internal */
export const TranscriptionStreamSegmentDelta$inboundSchema = z.object({
    type: z.literal("transcription.segment"),
    text: z.string(),
    start: z.number(),
    end: z.number(),
    speaker_id: z.nullable(z.string()).optional(),
}).catchall(z.any()).transform((v) => {
    return remap$(v, {
        "speaker_id": "speakerId",
    });
});
export function transcriptionStreamSegmentDeltaFromJSON(jsonString) {
    return safeParse(jsonString, (x) => TranscriptionStreamSegmentDelta$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TranscriptionStreamSegmentDelta' from JSON`);
}
//# sourceMappingURL=transcriptionstreamsegmentdelta.js.map