ElevenLabs: Eleven Turbo v2
elevenlabs/eleven-turbo-v2
activo
tts
1 proveedor
ElevenLabs' English-only low-latency model, on par with Turbo v2.5 and best where speed matters and only English is needed.
AutorElevenLabs
Idiomas1 idiomas
VocesCargando...
Formatos de respuestaSíncrono: MP3 · WAV · PCM · Opus · µ-law · A-law
Streaming: MP3 · PCM · Opus · µ-law · A-law
Streaming: MP3 · PCM · Opus · µ-law · A-law
Estadoactivo
Proveedores
Distintos proveedores pueden alojar el mismo modelo. Elige un proveedor cuando necesites un backend fijo, o deja que el enrutamiento elija entre ellos.
ProveedorSlugPor 1k caracteresLatenciaiEn TTS, la latencia se mide como el tiempo hasta el primer byte de audio. En STT, se mide como el tiempo hasta el primer token.ModosDisponibilidad
ElevenLabs
14 parámetros
elevenlabs
$0,05
—
Síncrono · Streaming
Idiomas admitidos
1 idiomas
English
en
Voces
Funciones
Text to speech
Generates spoken audio from text input.
text_to_speech
Streaming
Streams synthesized audio incrementally over a persistent connection (WebSocket/SSE).
streaming
Synchronous
Synthesizes speech from fully-submitted text in a single synchronous request.
synchronous
Low latency
Designed for lower-latency speech generation use cases.
low_latency
Fine-tuning
Supports provider-managed fine-tuning for this model.
fine_tuning
Código
TTS en streaming con el ElevenLabs SDK
Enruta el ElevenLabs SDK a través de AllModels y transmite la respuesta de audio.
import { ElevenLabsClient } from "elevenlabs";
const client = new ElevenLabsClient({
apiKey: process.env.ALLMODELS_API_KEY,
baseUrl: "https://api.allmodels.io/el"
});
const stream = await client.textToSpeech.stream("voice_id", {
text: "I'm sorry, Dave. I'm afraid I can't do that.",
modelId: "elevenlabs/eleven-turbo-v2",
outputFormat: "mp3_44100_128"
});
const reader = stream.getReader();
for (;;) {
const { done, value } = await reader.read();
if (done) break;
// Write value to your response, file, or audio playback pipeline.
}
