UNPKG

@ai-sdk/google

Version:
27 lines (23 loc) 633 B
import { lazySchema, zodSchema, type InferSchema, } from '@ai-sdk/provider-utils'; import { z } from 'zod/v4'; export type GoogleSpeechTranslationModelId = | 'gemini-3.5-live-translate-preview' | (string & {}); export const googleSpeechTranslationModelOptions = lazySchema(() => zodSchema( z.object({ /** * Whether input audio already in the target language should be echoed * instead of producing silence. */ echoTargetLanguage: z.boolean().optional(), }), ), ); export type GoogleSpeechTranslationModelOptions = InferSchema< typeof googleSpeechTranslationModelOptions >;