UNPKG

@ai-sdk/elevenlabs

Version:

The **[ElevenLabs provider](https://ai-sdk.dev/providers/ai-sdk-providers/elevenlabs)** for the [AI SDK](https://ai-sdk.dev/docs) contains language model support for the ElevenLabs chat and completion APIs and embedding model support for the ElevenLabs em

19 lines (16 loc) 663 B
import { z } from 'zod/v4'; // https://elevenlabs.io/docs/api-reference/speech-to-text/convert export const elevenLabsTranscriptionModelOptionsSchema = z.object({ languageCode: z.string().nullish(), tagAudioEvents: z.boolean().nullish().default(true), numSpeakers: z.number().int().min(1).max(32).nullish(), timestampsGranularity: z .enum(['none', 'word', 'character']) .nullish() .default('word'), diarize: z.boolean().nullish().default(false), fileFormat: z.enum(['pcm_s16le_16', 'other']).nullish().default('other'), }); export type ElevenLabsTranscriptionModelOptions = z.infer< typeof elevenLabsTranscriptionModelOptionsSchema >;