Text-to-Speech
Cartesia
standardCartesia is an reliable text-to-speech provider offering Speech Synthesis, Streaming TTS through Aweb's unified API. It features full streaming support with premium-tier latency.
Specifications
Capabilities (2)
Quick start
Use Cartesia through Alfred's unified API — no provider-specific SDK needed.
cURL
curl -X POST https://api.alfred-ai.app/v1/execute \
-H "Authorization: Bearer $ALFRED_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"provider": "cartesia",
"capability": "tts.synthesize",
"input": { "prompt": "Hello from Cartesia!" }
}'TypeScript
import { Alfred } from '@alfred/core';
const alfred = new Alfred({ apiKey: process.env.ALFRED_API_KEY });
const result = await alfred.execute({
provider: 'cartesia',
capability: 'tts.synthesize',
input: { prompt: 'Hello from Cartesia!' },
});
console.log(result.output);