vercel/ai · error · InvalidArgumentError
Cartesia Ink 2 currently supports English only.
Error message
Cartesia Ink 2 currently supports English only.
What it means
Error "Cartesia Ink 2 currently supports English only." thrown in vercel/ai.
Source
Thrown at packages/cartesia/src/cartesia-transcription-model.ts:210
if (!isStreamingTranscriptionModelId(this.modelId)) {
throw new UnsupportedFunctionalityError({
functionality: `streaming transcription with ${this.modelId}`,
});
}
const currentDate = this.config._internal?.currentDate?.() ?? new Date();
const warnings: SharedV4Warning[] = [];
const cartesiaOptions = await parseProviderOptions({
provider: 'cartesia',
providerOptions: options.providerOptions,
schema: cartesiaTranscriptionModelOptionsSchema,
});
if (
cartesiaOptions?.language != null &&
cartesiaOptions.language !== 'en'
) {
throw new InvalidArgumentError({
argument: 'providerOptions',
message: 'Cartesia Ink 2 currently supports English only.',
});
}
if (cartesiaOptions?.timestampGranularities != null) {
warnings.push({
type: 'unsupported',
feature: 'providerOptions.cartesia.timestampGranularities',
details:
'Cartesia streaming transcription does not support timestamp granularities.',
});
}
// Always validate the declared media type — an explicit
// `streaming.encoding` override must not bypass the allowlist.
const inferredEncoding = cartesiaEncodingFromInputAudioFormat(
options.inputAudioFormat.type,View on GitHub (pinned to 69428b1f8b)
When it happens
Trigger: Thrown at packages/cartesia/src/cartesia-transcription-model.ts:210 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of vercel/ai@69428b1f8b (2026-08-30).
Data as JSON: /api/errors/92d0491dffa77f46.
Report an issue: GitHub.