new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

AI SDK · Providers · all subjects

cartesia/capabilities

7 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Cartesia speech generation example

import { generateSpeech } from 'ai'; import { cartesia, type CartesiaSpeechModelOptions } from '@ai-sdk/cartesia'; const result = await generateSpeech({ model: cartesia.speech('sonic-3.5'), text: 'Hello, world!', voice: '694f9389-aac1-45b6-b726-9d9369183238', providerOptions: { cartesia: { container: 'wav', encoding: 'pcm_s16le', sampleRate: 24000, } satisfies CartesiaSpeechModelOptions, }, });

Cartesia realtime transcription token generation

Realtime transcription sessions require a short-lived access token created on the server with cartesia.experimental_realtime.getToken({ model: 'ink-2', sessionConfig: {...} }). Session config supports inputAudioFormat (type and rate), inputAudioTranscription (language), and turnDetection (type: 'server-vad' or null for manual finalization).

Cartesia Ink 2 realtime capabilities

The ink-2 model supports streaming transcription and turn detection.

Cartesia streaming transcription example

import { cartesia } from '@ai-sdk/cartesia'; import { experimental_streamTranscribe as streamTranscribe } from 'ai'; const result = streamTranscribe({ model: cartesia.transcription('ink-2'), audio, inputAudioFormat: { type: 'audio/pcm', rate: 24000 }, providerOptions: { cartesia: { language: 'en', }, }, }); for await (const part of result.fullStream) { if (part.type === 'transcript-partial') { console.log('partial:', part.text); } if (part.type === 'transcript-final') { console.log('final:', part.text); } }

Cartesia batch transcription example

import { transcribe } from 'ai'; import { cartesia, type CartesiaTranscriptionModelOptions } from '@ai-sdk/cartesia'; import { readFile } from 'fs/promises'; const result = await transcribe({ model: cartesia.transcription('ink-whisper'), audio: await readFile('audio.mp3'), providerOptions: { cartesia: { language: 'en', } satisfies CartesiaTranscriptionModelOptions, }, });

Cartesia ink-whisper model capabilities

The ink-whisper model supports transcription, duration, segments, and language detection.

Cartesia provider capabilities summary

The Cartesia provider contains Sonic speech generation, Ink-Whisper batch transcription, and Ink 2 realtime and streaming transcription support.

Give your agent this brain